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 2021/09/16 23:28:00 UTC

[jira] [Resolved] (CALCITE-4781) group by index is not support

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

Julian Hyde resolved CALCITE-4781.
----------------------------------
    Fix Version/s:     (was: 1.28.0)
       Resolution: Not A Problem

It is supported. Just not by default. See [SqlConformance#isGroupByOrdinal|https://calcite.apache.org/javadocAggregate/org/apache/calcite/sql/validate/SqlConformance.html#isGroupByOrdinal()]. Closing as 'not a problem'.

> group by index is not support
> -----------------------------
>
>                 Key: CALCITE-4781
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4781
>             Project: Calcite
>          Issue Type: Bug
>          Components: jdbc-adapter
>    Affects Versions: 1.24.0, 1.25.0
>            Reporter: zlzhang0122
>            Priority: Major
>         Attachments: calcite.png
>
>
> Now, the follow sql isn't support:
> {code:java}
> select empno, count(*) from emps group by 1;{code}
> will produce a problem,but:
> {code:java}
> select empno, count(*) from emps group by empno;
> {code}
> won't, this syntax maybe need to be support.
> !calcite.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)