phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-953) Support UNNEST for ARRAY
Date Wed, 12 Aug 2015 20:07:46 GMT


James Taylor commented on PHOENIX-953:

We wouldn't want the Cartesian product, we'd want the first elements from each array as row
1, the second element from each array as row 2, etc. It's common to have parallel arrays that
you'd want to UNNEST this way (that's how I've seen it implemented in some DBs). Is there
an alternate syntax to accomplish this, [~julianhyde]?

> Support UNNEST for ARRAY
> ------------------------
>                 Key: PHOENIX-953
>                 URL:
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: James Taylor
>            Assignee: Dumindu Buddhika
>         Attachments: PHOENIX-953-v1.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:
> 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

View raw message