blob: 8afd26d7be12488db461cf4c65c5096986cc080f [file] [log] [blame]
-- Suppress vectorization due to known bug. See HIVE-19015.
set hive.vectorized.execution.enabled=false;
set hive.test.vectorized.execution.enabled.override=none;
-- this test reads and writes a parquet file with a map of maps
CREATE TABLE parquet_map_of_maps (
map_of_maps MAP<STRING, MAP<STRING, INT>>
) STORED AS PARQUET;
LOAD DATA LOCAL INPATH '../../data/files/NestedMap.parquet'
OVERWRITE INTO TABLE parquet_map_of_maps;
CREATE TABLE parquet_map_of_maps_copy STORED AS PARQUET AS SELECT * FROM parquet_map_of_maps;
SELECT * FROM parquet_map_of_maps_copy;
DROP TABLE parquet_map_of_maps;
DROP TABLE parquet_map_of_maps_copy;