Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
cdh5-beta2, trunk
Description
AbstractParquetMapInspector uses wrong class cast https://github.com/apache/hive/blob/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/serde/AbstractParquetMapInspector.java#L144
It should be AbstractParquetMapInspector
final StandardParquetHiveMapInspector other = (StandardParquetHiveMapInspector) obj;
Such conversion leads to class cast exception in case of DeepParquetHiveMapInspector.
Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.ql.io.parquet.serde.DeepParquetHiveMapInspector cannot be cast to org.apache.hadoop.hive.ql.io.parquet.serde.StandardParquetHiveMapInspector
at org.apache.hadoop.hive.ql.io.parquet.serde.AbstractParquetMapInspector.equals(AbstractParquetMapInspector.java:131)
at java.util.AbstractList.equals(AbstractList.java:523)
at java.util.AbstractList.equals(AbstractList.java:523)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:996)
at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory.getStandardStructObjectInspector(ObjectInspectorFactory.java:281)
at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory.getStandardStructObjectInspector(ObjectInspectorFactory.java:268)
at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:1022)
at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:65)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:377)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:453)
at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:409)
at org.apache.hadoop.hive.ql.exec.TableScanOperator.initializeOp(TableScanOperator.java:188)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:377)
at org.apache.hadoop.hive.ql.exec.FetchTask.initialize(FetchTask.java:80)
... 31 more
Attachments
Issue Links
- duplicates
-
HIVE-6575 select * fails on parquet table with map datatype
- Resolved