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

CompilationException for 2 or more Filters on an array type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • Execution - Codegen
    • 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

        1. drill-1134.1.patch
          9 kB
          Jinfeng Ni

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: