Re: Using phoenix-spark plugin to insert an ARRAY Type

2015-07-30 Thread Josh Mahonin
Hi Riccardo, For saving arrays, you can use the plain old scala Array type. You can see the tests for an example: https://github.com/apache/phoenix/blob/master/phoenix-spark/src/it/scala/org/apache/phoenix/spark/PhoenixSparkIT.scala#L408-L427 Note that saving arrays is only supported in Phoenix 4

Using phoenix-spark plugin to insert an ARRAY Type

2015-07-30 Thread Riccardo Cardin
Hi all, I have a problem with the phoenix-spark plugin. I have a Spark RDD that I have to store inside an HBase table. We use the Apache-phoenix layer to dialog with the database. There is a column of the table that is defined as an UNSIGNED_SMALLINT ARRAY: CREATE TABLE EXAMPLE (..., Col10 UNSIGN