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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • None
    • 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

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: