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

Group by COALESCE IN throws NullPointerException

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              danny0405 Danny Chen
              Reporter:
              danny0405 Danny Chen

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment