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 2020/08/11 09:59:00 UTC

[jira] [Reopened] (CALCITE-4167) Group by COALESCE IN throws NullPointerException

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

Julian Hyde reopened CALCITE-4167:
----------------------------------

Commit arrived after release vote started. I have backed out the commit.

> Group by COALESCE IN throws NullPointerException
> ------------------------------------------------
>
>                 Key: CALCITE-4167
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4167
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.24.0
>            Reporter: Danny Chen
>            Assignee: Danny Chen
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.25.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Added this test case in SqlToRelConverterTest:
> {code:java}
> @Test void testGroupByCoalesceIn() {
>     final String sql = "select case when coalesce(ename, 'a') in ('1', '2')\n" +
>         "then 'CKA' else 'QT' END, count(distinct deptno) from emp\n" +
>         "group by case when coalesce(ename, 'a') in ('1', '2') then 'CKA' else 'QT' END";
>     sql(sql).ok();
>   }
> {code}



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