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

CompilationException for 2 or more Filters on an array type

    Details

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

      Description

      The following query's generated code for the Filter consists of the doEval() block which has redefinition of variable isNull which causes a compilation failure. Note that isNull is not even referenced in the generated code.

      SELECT columns[0]
      FROM dfs.`/Users/asinha/data/regions.csv`
      WHERE cast(columns[0] as int) > 1
      ANDcast(columns[1] as varchar(20))='ASIA';

      }
      ] < CompileException:[ Line 82, Column 28: Redefinition of local variable "isNull" ]"

      I also get a Deadbuf access for this query, but that could be a separate issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                DrillCommitter DrillCommitter
                Reporter:
                amansinha100 Aman Sinha
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: