Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4167

Group by COALESCE IN throws NullPointerException

    XMLWordPrintableJSON

Details

    Description

      Added this test case in SqlToRelConverterTest:

      @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();
        }
      

      Attachments

        Issue Links

          Activity

            People

              danny0405 Danny Chen
              danny0405 Danny Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m