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

Extra column in Schema of Recordbatch from scanning Values

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: Execution - Data Types
    • Labels:
      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
          1 kB
          Sean Hsuan-Yi Chu
        2. DRILL-3019.1.patch
          3 kB
          Sean Hsuan-Yi Chu

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved: