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

CSV text reader does not handle duplicate header names

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Consider the following CSV file:

      h,h,h
      a,b,c
      d,e,f
      

      Parse this with the CSV storage plugins to parse headers. The result:

      2 row(s):
      h
      c
      f
      

      Expected a runtime error for the duplicate column names, or automatic "uniqification" of the names. Certainly did not expect the first two columns to be dropped.

      Attachments

        Activity

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

          People

            paul-rogers Paul Rogers
            paul-rogers Paul Rogers
            Sorabh Hamirwasia Sorabh Hamirwasia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment