You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Bruno Dumon (JIRA)" <ji...@apache.org> on 2014/02/20 17:05:22 UTC

[jira] [Created] (PHOENIX-64) Exception decoding single-element varchar array

Bruno Dumon created PHOENIX-64:
----------------------------------

             Summary: 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


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)