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

CASE Expression with constant generates class exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0, 1.8.0
    • Fix Version/s: 1.9.0
    • Component/s: SQL Parser
    • Labels:
      None

      Description

      How to reproduce:

      select (case when (true) then 1 end) from (values(1));

      Error
      Error: SYSTEM ERROR: ClassCastException: org.apache.drill.exec.expr.holders.NullableVarCharHolder cannot be cast to org.apache.drill.exec.expr.holders.VarCharHolder

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharnyk Serhii Harnyk
                Reporter:
                sharnyk Serhii Harnyk
                Reviewer:
                Khurram Faraaz
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: