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

[Text V3 Reader] dir0 is empty if a column filter returns all lines.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.16.0
    • 1.17.0
    • None

    Description

      Data:
      Unzip the attached archive: lineitempart.zip.

      Steps:

      1. Set exec.storage.enable_v3_text_reader=true
      2. Run the following query:
        select columns[0], dir0 from dfs.tmp.`/drill/data/lineitempart` where dir0=1994 and columns[0]>29766 order by columns[0] limit 1;
        

      Expected result:

      +--------+------+
      | EXPR$0 | dir0 |
      +--------+------+
      | 29767  | 1994 |
      +--------+------+
      

      Actual result:

      +--------+------+
      | EXPR$0 | dir0 |
      +--------+------+
      | 29767  |      |
      +--------+------+
      

      Note: If change filter a bit so it doesn't return all lines, everything is ok:

      apache drill> select columns[0], dir0 from dfs.tmp.`/drill/data/lineitempart` where dir0=1994 and columns[0]>29767 order by columns[0] limit 1;
      +--------+------+
      | EXPR$0 | dir0 |
      +--------+------+
      | 29792  | 1994 |
      +--------+------+
      

      Attachments

        1. lineitempart.zip
          1.96 MB
          Anton Gozhiy

        Activity

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

          People

            Paul.Rogers Paul Rogers
            angozhiy Anton Gozhiy
            Arina Ielchiieva Arina Ielchiieva
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment