Re: how can I cast PhoenixArray to ArrayList

2017-03-28 Thread James Taylor
Sorry, wrong link. PhoenixArray is an implementation of the standard java.sql.Array JDBC interface: https://docs.oracle.com/javase/7/docs/api/java/sql/Array.html On Tue, Mar 28, 2017 at 5:46 AM 袁康(基础平台部) wrote: > I see the doc, but It’s oracle API . There is getIntArray method to cast > Oracle

Re: how can I cast PhoenixArray to ArrayList

2017-03-28 Thread 基础平台部
I see the doc, but It’s oracle API . There is getIntArray method to cast Oracle Array to int[] .Phoenix array does not hava one 在 2017年3月27日,22:38,James Taylor mailto:jamestay...@apache.org>> 写道: The JDBC array is not an ArrayList. See http://download.oracle.com/otn_hosted_doc/jdeveloper/905/

Re: how can I cast PhoenixArray to ArrayList

2017-03-27 Thread James Taylor
The JDBC array is not an ArrayList. See http://download.oracle.com/otn_hosted_doc/jdeveloper/905/jdbc-javadoc/oracle/sql/ARRAY.html On Mon, Mar 27, 2017 at 3:50 AM 袁康(基础平台部) wrote: > When I query phoenix in java project > > occur:java.lang.ClassCastException: > org.apache.phoenix.schema.types.P

how can I cast PhoenixArray to ArrayList

2017-03-27 Thread 基础平台部
When I query phoenix in java project occur:java.lang.ClassCastException: org.apache.phoenix.schema.types.PhoenixArray cannot be cast to java.util.ArrayList How can I do the transfer?