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

Query with "WHERE CASE" throws AssertionError "Cast for just nullability not allowed"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.0
    • Component/s: None
    • Labels:
      None

      Description

      The following query throws "Cast for just nullability not allowed", just after ProjectFilterTransposeRule is invoked.

      select count(*)
      from emp
      where case when mgr < 10 then true else false end
      

        Activity

        Show
        julianhyde Julian Hyde added a comment - Test case: https://github.com/julianhyde/calcite/tree/1778-where-case
        Show
        julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/6b8e2c3d .
        Hide
        jcamachorodriguez Jesus Camacho Rodriguez added a comment -

        Resolved in release 1.13.0 (2017-06-26).

        Show
        jcamachorodriguez Jesus Camacho Rodriguez added a comment - Resolved in release 1.13.0 (2017-06-26).

          People

          • Assignee:
            julianhyde Julian Hyde
            Reporter:
            julianhyde Julian Hyde
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development