You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/09/01 20:24:45 UTC

[jira] [Commented] (PHOENIX-953) Support UNNEST for ARRAY

    [ https://issues.apache.org/jira/browse/PHOENIX-953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725843#comment-14725843 ] 

Julian Hyde commented on PHOENIX-953:
-------------------------------------

I don't have an opinion about whether key_expr would be useful. But its syntax (with key_expr as a first argument to UNNEST) precludes SQL:2011 UNNEST with multiple array arguments. I.e. Teradata is SQL:2008 compliant but breaks SQL:2011. Let's not do that. :)

> 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
>             Fix For: 4.6
>
>         Attachments: PHOENIX-953-v1.patch, PHOENIX-953-v2.patch, PHOENIX-953-v3.patch, PHOENIX-953-v4.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)