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

Select column range

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.10.0
    • None
    • SQL Parser
    • None
    • All

    Description

      Ability to select column ranges would be useful. When dealing with wide files being able to select sequential range of columns without specifying each column will improve the usability.

      So instead of this:
      select columns[1], columns[2], columns[3], columns[8], columns[9], columns[10] from `data.csv`

      use this:
      select columns[1-3], columns[8-10] from `data.csv`

      On a sidenote for extremely wide files (10K columns) the only way to query the data or load it into native tables is to chop it up first as JVM is running out of constant limits (error: too many constants) when querying the file directly or creating a table from it. This issue has been reported elsewhere.

      Attachments

        Activity

          People

            Unassigned Unassigned
            exwhyz Humair M
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: