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

Extra column in Schema of Recordbatch from scanning Values

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment