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
      

        Attachments

          Activity

            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: