[
https://issues.apache.org/jira/browse/PHOENIX-953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14707791#comment-14707791
]
Maryann Xue edited comment on PHOENIX-953 at 8/22/15 2:29 AM:
--------------------------------------------------------------
[~Dumindux] Sorry for the late response. There are two things missing so far:
1. Support for WITH ORDINALITY: We might have to a new expression for this one.
I also figured UnnestExpression might not be necessary and we could use
ArrayElemRefExpression instead.
2. The standalone unit tests for UnnestArrayQueryPlan, which are supposed to
test the query-plan's behavior based on input/output without having to go
through sql queries.
I'll make these changes based on your latest patch. You've done a nice job. We
were just considering that we were approaching GSoC deadline and we'd like to
help you close this issue ASAP.
was (Author: maryannxue):
[~Dumindux] Sorry for the late response. There are two things missing so far:
1. Support for WITH ORDINALITY: We might have to a new expression for this one.
I also figured UnnestExpression might not be necessary and we could use
ArrayElemRefExpression instead.
2. The standalone unit tests for UnnestArrayQueryPlan, which are supposed to
test the query-plan's behavior based on input/output without having to go
through sql queries.
I'll make these changes based on your latest patch.
> Support UNNEST for ARRAY
> ------------------------
>
> Key: PHOENIX-953
> URL: https://issues.apache.org/jira/browse/PHOENIX-953
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: James Taylor
> Assignee: Dumindu Buddhika
> Attachments: PHOENIX-953-v1.patch, PHOENIX-953-v2.patch,
> PHOENIX-953-v3.patch
>
>
> The UNNEST built-in function converts an array into a set of rows. This is
> more than a built-in function, so should be considered an advanced project.
> For an example, see the following Postgres documentation:
> http://www.postgresql.org/docs/8.4/static/functions-array.html
> http://www.anicehumble.com/2011/07/postgresql-unnest-function-do-many.html
> http://tech.valgog.com/2010/05/merging-and-manipulating-arrays-in.html
> So the UNNEST is a way of converting an array to a flattened "table" which
> can then be filtered on, ordered, grouped, etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)