hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brock Noland (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HIVE-6491) ClassCastException in AbstractParquetMapInspector
Date Sat, 08 Mar 2014 13:13:44 GMT

     [ https://issues.apache.org/jira/browse/HIVE-6491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brock Noland resolved HIVE-6491.
--------------------------------

    Resolution: Duplicate

> ClassCastException in AbstractParquetMapInspector
> -------------------------------------------------
>
>                 Key: HIVE-6491
>                 URL: https://issues.apache.org/jira/browse/HIVE-6491
>             Project: Hive
>          Issue Type: Bug
>          Components: File Formats
>         Environment: cdh5-beta2, trunk
>            Reporter: Andrey Stepachev
>
> 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
> {code:java}
> final StandardParquetHiveMapInspector other = (StandardParquetHiveMapInspector) obj;
> {code}
> Such conversion leads to class cast exception in case of DeepParquetHiveMapInspector.
> {code}
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message