Exception trying to write an ARRAY of UNSIGNED_SMALLINT

2015-08-04 Thread Riccardo Cardin
Hi all, I am using Phoenix version 4.5.0 and the phoenix-spark plugin to write into HBase an ARRAY of UNSIGNED_SMALLINT. As stated in the documentation, this type is mapped to the java type java.lang.Short. Using the saveToPhoenix method on a RDD and passing a Scala Array of Short I obtain the

Re: Exception trying to write an ARRAY of UNSIGNED_SMALLINT

2015-08-04 Thread Josh Mahonin
Hi Riccardo, I think you've run into a bit of a mismatch between Scala and Java types. Could you please file a JIRA ticket for this with all the info above? You should be able to work around this by first converting your array contents to be java.lang.Short. I just tried this out and it worked