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

Fix select count(1) / count(*) on csv with header

    XMLWordPrintableJSON

Details

    Description

      This happens since 1.8

      Dataset (I used extended char for display purpose) test.csvh:

      a,b,c,d\n
      1,2,3,4\n
      5,6,7,8\n

      Storage config:
      "csvh":

      { "type": "text", "extensions" : [ "csvh" ], "extractHeader": true, "delimiter": "," }

      select count(1) from dfs.`test.csvh`

      Error: UNSUPPORTED_OPERATION ERROR: With extractHeader enabled, only header names are supported
      coumn name columns
      column index
      Fragment 0:0

      Attachments

        Issue Links

          Activity

            People

              arina Arina Ielchiieva
              fmethot F Méthot
              Krystal Krystal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: