Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.8.0
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 | +------------------+