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

Columns of views created from files are of data type 'ANY'

    XMLWordPrintableJSON

Details

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

    Description

      When you execute a select * query against a view created from a file (eg. from JSON or CSV), the data type of the columns returned reflect the nature of the data in the column (varchar, bigint, etc).
      But in INFORMATION_SCHEMA.COLUMNS, the data type is listed as 'ANY'.

      Note that if it was casted during the create view statement, then INFORMATION_SCHEMA.COLUMNS will display it correctly as whatever it was casted to.

      Attachments

        Activity

          People

            Unassigned Unassigned
            norrisl Norris Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: