[
https://issues.apache.org/jira/browse/PHOENIX-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14051121#comment-14051121
]
ramkrishna.s.vasudevan edited comment on PHOENIX-952 at 7/3/14 6:38 AM:
------------------------------------------------------------------------
I got the idea here. So in my previous patch I was not making use of the
ComparisonExpression and was creating my own new ComparisonExpression and the
loop logic was doing that. Instead I will create an inlineArrayRef and on that
expression will keep setting the index of the array for which the ptr will be
set and the comparisonexpression already available with us would compare this
ptr's position representing the array element with the LHS to be compared.
was (Author: ram_krish):
I got the idea here. So in my previous patch I was not making use of the
ComparisonExpression and was create my own new ComparisonExpression and the
loop logic was doing that. Instead I will create an inlineArrayRef and on that
expression will keep setting the index of the array for which the ptr will be
set and the comparisonexpression already available with us would compare this
ptr's position representing the array element with the LHS to be compared.
> Support ANY and ALL built-ins for ARRAYs
> ----------------------------------------
>
> Key: PHOENIX-952
> URL: https://issues.apache.org/jira/browse/PHOENIX-952
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 3.0.0, 4.0.0
> Reporter: James Taylor
> Assignee: ramkrishna.s.vasudevan
> Fix For: 3.1, 4.1
>
> Attachments: Phoenix-932_1.patch, Phoenix-932_2.patch,
> Phoenix-952_4.patch, Phoenix-952_5.patch
>
>
> There's currently no good way to search array elements. We should support the
> ANY and ALL built-ins for our ARRAY type like Postgres does:
> http://www.postgresql.org/docs/9.1/static/arrays.html#ARRAYS-SEARCHING
--
This message was sent by Atlassian JIRA
(v6.2#6252)