Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.13.0
-
None
-
None
Description
select * from parquet hive table containing map columns run into exception "FAILED: RuntimeException java.lang.ClassCastException: parquet.hive.serde.DeepParquetHiveMapInspector cannot be cast to parquet.hive.serde.StandardParquetHiveMapInspector"
To reproduce, use the following steps (both regular_map_table and parquet_map_table contains schema "c1 , c2 int"):
hive> insert overwrite table parquet_map_table select * from regular_map_table;
hive> select * from parquet_map_table; (the first query to select * works fine )
OK
{"key1":"value1"}1
{"key2":"value2"}2
{"key3":"value3"} 3
Time taken: 2.669 seconds, Fetched: 3 row(s)
hive> select * from parquet_map_table; (the second and all subsequent exact same query breaks)
FAILED: RuntimeException java.lang.ClassCastException: parquet.hive.serde.DeepParquetHiveMapInspector cannot be cast to parquet.hive.serde.StandardParquetHiveMapInspector
Interestingly "select c1 from parquet_map_column" query works fine though.
Attachments
Issue Links
- duplicates
-
HIVE-6575 select * fails on parquet table with map datatype
- Resolved