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

INTERVAL YEAR columns are missing the converted type when stored in parquet files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • Future
    • Storage - Parquet

    Description

      When creating a parquet file with the following query:

      CREATE TABLE dfs.tmp.`test_intervalyear` AS SELECT interval '1-2' YEAR TO MONTH AS INTERVALYEAR_col FROM dfs.data.`test.json`;
      

      parquet tools display the following metadata for the generated parquet file:

      creator:          parquet-mr 
      
      file schema:      root 
      ----------------------------------------------------------------------
      INTERVALYEAR_col: REQUIRED INT32 R:0 D:0
      
      row group 1:      RC:5 TS:52 
      ----------------------------------------------------------------------
      

      querying the file back displays the following results:

      0: jdbc:drill:zk=local> select * from dfs.tmp.`test_intervalyear`;
      +------------------+
      | intervalyear_col |
      +------------------+
      | 14               |
      | 14               |
      | 14               |
      | 14               |
      | 14               |
      +------------------+
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            adeneche Abdel Hakim Deneche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: