phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-1288) Selecting more than 2 array elements via index fails with ArrayIndexOutOfBoundsException
Date Wed, 24 Sep 2014 19:57:33 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146803#comment-14146803
] 

Hudson commented on PHOENIX-1288:
---------------------------------

SUCCESS: Integrated in Phoenix | Master | Hadoop1 #380 (See [https://builds.apache.org/job/Phoenix-master-hadoop1/380/])
PHOENIX-1288 Fix selecting multiple array indexes (gabrielr: rev 70319eabedfff3b72e3bd8f3aacbbb717808c8cc)
* phoenix-core/src/main/java/org/apache/phoenix/coprocessor/ScanRegionObserver.java
* phoenix-core/src/it/java/org/apache/phoenix/end2end/ArrayIT.java


> Selecting more than 2 array elements via index fails with ArrayIndexOutOfBoundsException
> ----------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-1288
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1288
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 3.1, 4.1
>            Reporter: Gabriel Reid
>            Assignee: Gabriel Reid
>             Fix For: 4.2, 3.2
>
>         Attachments: PHOENIX-1288.patch
>
>
> Selecting more than two individual array elements in a query results in an ArrayIndexOutOfBoundsException
thrown from ScanRegionObserver.
> An example of a query that will trigger this situation is as follows:
> {code}select arr[1], arr[2], arr[3] from table_with_array{code}
> The cause appears to be the replaceArrayIndexElement method in ScanRegionObserver. It
removes a Cell for each array reference in the query, with the intention of replacing them
with a reduced Cell that only contains the requested values of the array. The current impl
attempts to remove the same KeyValue multiple times, and in the end attempts to remove more
KeyValues than there are in the original list.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message