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

big varchar doesn't work with extractHeader=true

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.15.0
    • Fix Version/s: None
    • Component/s: Storage - Text & CSV
    • Labels:
      None

      Description

      with a TEST file of csv type like

      col1,col2
      w,x
      ...y...,z
      

      where ...y... is > 65536 characters string (let say 66000 for example)

      SELECT with extractHeader=false are OK

      SELECT * FROM TABLE(tmp.`TEST`(type => 'text', fieldDelimiter => ',', extractHeader => false));
          col1  | col2
      +---------+------
      | w       | x
      | ...y... | z
      

      But SELECT with extractHeader=true gives an error

      SELECT * FROM TABLE(tmp.`TEST`(type => 'text', fieldDelimiter => ',', extractHeader => true));
      Error: UNSUPPORTED_OPERATION ERROR: Trying to write something big in a column
      columnIndex 1
      Limit 65536
      Fragment 0:0
      

      Note that is possible to use extractHeader=false with skipFirstLine=true but in this case it's not possible to automatically get columns names.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                benj641 benj
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: