You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Danny Chen (Jira)" <ji...@apache.org> on 2020/08/10 03:20:00 UTC

[jira] [Resolved] (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 ]

Danny Chen resolved CALCITE-4167.
---------------------------------
    Resolution: Fixed

Fixed in [aadb605|https://github.com/apache/calcite/commit/aadb605decd6bb6a853e23fac4b0f479b2397e06] !

> 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)