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

Use result of DESCRIBE as a SELECT

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.16.0
    • None
    • None

    Description

      It would be usefull to be able to use the result of a DESCRIBE command like a SELECT.

      Examples:

      CREATE TABLE dfs.tmp.`outputTable.csv` AS (DESCRIBE dfs.tmp.`test`);
      
      SELECT `COLUMN_NAME` 
      FROM (DESCRIBE dfs.tmp.`test`) 
      WHERE `DATA_TYPE` LIKE '%INT%';
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            benj641 benj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: