[
https://issues.apache.org/jira/browse/PHOENIX-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704068#comment-14704068
]
Dumindu Buddhika commented on PHOENIX-2160:
-------------------------------------------
When checking this out for a test case using debugger,
at this part,
{code}
final List<KeyValueColumnExpression> indexKVs = Lists.newArrayList();
// Create anon visitor to find reference to array in a generic
way
children.get(0).accept(new KeyValueExpressionVisitor() {
@Override
public Void visit(KeyValueColumnExpression expression) {
if (expression.getDataType().isArrayType()) {
indexKVs.add(expression);
}
return null;
}
});
{code}
it seems that, array expression comes in as a ProjectedColumnExpression, not a
KeyValueColumnExpression. So indexKVs does not get updated. That is why the
problem I think.
> 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
>
> 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)