[ 
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_v5.patch

Thanks for the suggestions [~jamestaylor]. I have created a patch with your 
suggestions. Please take a look. I added several more tests also.

Here I encountered a problem. at visitLeave(FunctionParseNode node, final 
List<Expression> children) we replace the original ArrayIndexFunction with a 
different one. So if we later decide that optimization should not be done for 
that expression(if the whole array is referenced in a different place) we need 
to replace the function with the original function again. I included the 
original  ArrayIndexFunction in the newly created one so in this situation it 
can be used to evaluate. 

> 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-2160_v3.patch, PHOENIX-2160_v4.patch, PHOENIX-2160_v5.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)

Reply via email to