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

Drill hit compile error in generated code when it evaluates an expression returning a repeated list.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • None
    • None

    Description

      If I have the following JSON input:

      { "a" : [

      { "x": [[1], [2], [3]], "y": "abc"}

      ,

      { "x": [[5], [6], [7]], "y": "ABC"}

      ] }
      { "a" : [

      { "x": [[10], [20], [30]], "y": "abc2"}

      ,

      { "x": [[50], [60], [70]], "y": "ABC2"}

      ] }

      For this query:

      select t.a[1].x from dfs.`/Users/jni/work/data/json/input.json` t;

      Drill will complain with compile error in run-time generated code:

      Line 49, Column 34: No applicable constructor/method found for actual parameters "org.apache.drill.exec.vector.complex.writer.BaseWriter$ListWriter"; candidates are: "public abstract void org.apache.drill.exec.vector.complex.reader.TinyIntReader.copyAsValue(org.apache.drill.exec.vector.complex.writer.TinyIntWriter)",

      Attachments

        Activity

          People

            DrillCommitter DrillCommitter
            jni Jinfeng Ni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: