Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1006

Fix case expression when conditions are nullable type.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: