[ https://issues.apache.org/jira/browse/HIVE-10697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Swarnim Kulkarni updated HIVE-10697: ------------------------------------ Description: Currently the UnionConvertor in the ObjectInspectorConvertors class has an issue with the convert method where it attempts to convert the objectinspector itself instead of converting the field.[1]. This should be changed to convert the field itself. This could result in a ClassCastException as shown below: {quote} {quote} [1] https://github.com/apache/hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorConverters.java#L466 was: Currently the UnionConvertor in the ObjectInspectorConvertors class has an issue with the convert method where it attempts to convert the objectinspector itself instead of converting the field.[1] This should be changed to convert the field itself. [1] https://github.com/apache/hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorConverters.java#L466 > ObjecInspectorConvertors#UnionConvertor does a faulty conversion > ---------------------------------------------------------------- > > Key: HIVE-10697 > URL: https://issues.apache.org/jira/browse/HIVE-10697 > Project: Hive > Issue Type: Bug > Components: Serializers/Deserializers > Reporter: Swarnim Kulkarni > Assignee: Swarnim Kulkarni > > Currently the UnionConvertor in the ObjectInspectorConvertors class has an > issue with the convert method where it attempts to convert the > objectinspector itself instead of converting the field.[1]. This should be > changed to convert the field itself. This could result in a > ClassCastException as shown below: > {quote} > {quote} > [1] > https://github.com/apache/hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorConverters.java#L466 -- This message was sent by Atlassian JIRA (v6.3.4#6332)