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

Extra column in Schema of Recordbatch from scanning Values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • Execution - Data Types
    • None

    Description

      A query which has a pattern:
      column IN (1, 1 + 1, 1 + 2)

      For the tuple, Calcite makes a plan like

      UnionAll(all=[true])
        UnionAll(all=[true])
          Project(EXPR$0=[+(1, 1)])
            Values
          Project(EXPR$0=[+(1, 2)])
            Values
        Values
      

      At execution, the schema of the recordbatch from scanning Values is [`ZERO`(BIGINT: OPTIONAL), `*`(BIGINT: OPTIONAL)].

      The second column (i.e., `*`) is not supposed to be there.

      Attachments

        1. DRILL-3019.1.patch
          3 kB
          Sean Hsuan-Yi Chu
        2. DRILL-3019.1.patch
          1 kB
          Sean Hsuan-Yi Chu

        Activity

          People

            seanhychu Sean Hsuan-Yi Chu
            seanhychu Sean Hsuan-Yi Chu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: