You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/10/05 22:12:26 UTC

[jira] [Updated] (CALCITE-877) Allow ROW as argument to COLLECT

     [ https://issues.apache.org/jira/browse/CALCITE-877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde updated CALCITE-877:
--------------------------------
    Fix Version/s: 1.5.0-incubating

> Allow ROW as argument to COLLECT
> --------------------------------
>
>                 Key: CALCITE-877
>                 URL: https://issues.apache.org/jira/browse/CALCITE-877
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>             Fix For: 1.5.0-incubating
>
>
> We would like to build multisets of records, for instance all of the employees in a department: {code}SELECT deptno, COLLECT(ROW(ename, salary)) AS emps
> FROM emp
> GROUP BY deptno{code}
> Standard SQL only allows ROW inside a table constructor (i.e. a VALUES clause). A workaround is to create a user-defined type (CREATE TYPE; see http://www.oracle-developer.net/display.php?id=306) but it would be preferable to be able to create rows of anonymous type, so that the above SELECT statement just works.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)