Apache Drill
  1. Apache Drill
  2. DRILL-1006

Fix case expression when conditions are nullable type.

    Details

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

      Description

      There are two issues in case expressions:

      1. ExpressionValidator enforces that the conditions in a case expression have to be non-nullable type. This is not true ; a condition could be a nullable type from any expression generating boolean value.

      2. In EvaluationVisitor when we generate the run-time code, the generated code for case expression when the condition is nullable is not valid, causing compiler error.

        Activity

        Hide
        Jacques Nadeau added a comment -

        fixed in efa3274 or earlier

        Show
        Jacques Nadeau added a comment - fixed in efa3274 or earlier

          People

          • Assignee:
            Unassigned
            Reporter:
            Jinfeng Ni
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development