[
https://issues.apache.org/jira/browse/PHOENIX-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dumindu Buddhika updated PHOENIX-2160:
--------------------------------------
Attachment: PHOENIX-2160_v2.patch
Thanks for the review Ram.
I changed the patch slightly.
As I have seen at here,
{code}
if (projector != null) {
Tuple tuple = projector.projectResults(new
ResultTuple(Result.create(result)));
result.clear();
result.add(tuple.getValue(0));
{code}
the dummy KeyValue added is lost somehow. So I added it at there if
ArrayIndexExpression is present.
if not
{code}
tuple.getValue(QueryConstants.ARRAY_VALUE_COLUMN_FAMILY,
QueryConstants.ARRAY_VALUE_COLUMN_QUALIFIER,
ptr)
{code}
in ArrayIndexExpression.evaluate in ProjectionCompiler returns false. But after
doing above it evaluates correctly.
> Projection of specific array index does not work
> ------------------------------------------------
>
> Key: PHOENIX-2160
> URL: https://issues.apache.org/jira/browse/PHOENIX-2160
> Project: Phoenix
> Issue Type: Bug
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
> Attachments: PHOENIX-2160.patch, PHOENIX-2160_v2.patch
>
>
> PHOENIX-10 that allowed projection of specific array index does not work now.
> Was looking into the code for some thing and found this issue. Let me know if
> am missing something.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)