You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2014/02/20 20:17:21 UTC
[jira] [Commented] (PHOENIX-64) Exception decoding single-element
varchar array
[ https://issues.apache.org/jira/browse/PHOENIX-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907345#comment-13907345 ]
James Taylor commented on PHOENIX-64:
-------------------------------------
Thanks for the patch, [~bruno]. [~ram_krish] is at the tail end of making some changes to the serialization format of arrays. Once we release 3.0, we'll lock down this format (note we do have a byte that acts as a version flag, so it is possible we can modify going forward in a b/w compatible way). Is this going to cause you any problems (as we weren't planning on doing any data migration for this change)?
[~ram_krish] - would you mind taking a look at this patch and incorporating it into your change?
> Exception decoding single-element varchar array
> -----------------------------------------------
>
> Key: PHOENIX-64
> URL: https://issues.apache.org/jira/browse/PHOENIX-64
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Bruno Dumon
> Assignee: ramkrishna.s.vasudevan
> Attachments: phoenix-64-patch.txt
>
>
> With current 3.0.0-SNAPSHOT, trying to read an array (using ResultSet.getArray) of type varchar which contains a single element gives an exception:
> {noformat}
> java.lang.NegativeArraySizeException
> at org.apache.phoenix.schema.PArrayDataType.createPhoenixArray(PArrayDataType.java:341)
> {noformat}
> The problem dissappears for arrays of size > 1.
> I will attach a fix and test.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)