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

CSVReader : Drill not reading the last column from a text file if it is an empty string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • Storage - Text & CSV
    • None

    Description

      git.commit.id.abbrev=f1b59ed

      Data Set :

      Hello|World
      |
      

      The below queries suggest that drill is treating columns[1] as a missing column for the second record while it treats columns[0] as empty string for the second record

      0: jdbc:drill:schema=dfs_eea> select * from `temp.tbl`;
      +------------+
      |  columns   |
      +------------+
      | ["Hello","World"] |
      | [""]       |
      +------------+
      2 rows selected (0.098 seconds)
      0: jdbc:drill:schema=dfs_eea> select columns[0] from `temp.tbl`;
      +------------+
      |   EXPR$0   |
      +------------+
      | Hello      |
      |            |
      +------------+
      2 rows selected (0.103 seconds)
      0: jdbc:drill:schema=dfs_eea> select columns[1] from `temp.tbl`;
      +------------+
      |   EXPR$0   |
      +------------+
      | World      |
      | null       |
      +------------+
      

      Attachments

        Activity

          People

            paul-rogers Paul Rogers
            rkins Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: