[
https://issues.apache.org/jira/browse/HIVE-27905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
okumin updated HIVE-27905:
--------------------------
Description:
For example, GenericUDFSplit throws ClassCastException when a non-primitive
type is given.
{code:java}
0: jdbc:hive2://hive-hiveserver2:10000/defaul> select split(array('a,b,c'),
',');
Error: Error while compiling statement: FAILED: ClassCastException
org.apache.hadoop.hive.serde2.objectinspector.StandardConstantListObjectInspector
cannot be cast to
org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
(state=42000,code=40000) {code}
was:
GenericUDFSplit throws ClassCastException when a non-primitive type is given.
{code:java}
0: jdbc:hive2://hive-hiveserver2:10000/defaul> select split(array('a,b,c'),
',');
Error: Error while compiling statement: FAILED: ClassCastException
org.apache.hadoop.hive.serde2.objectinspector.StandardConstantListObjectInspector
cannot be cast to
org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
(state=42000,code=40000) {code}
Summary: Some GenericUDFs wrongly cast ObjectInspectors (was: SPLIT
throws ClassCastException)
> Some GenericUDFs wrongly cast ObjectInspectors
> ----------------------------------------------
>
> Key: HIVE-27905
> URL: https://issues.apache.org/jira/browse/HIVE-27905
> Project: Hive
> Issue Type: Improvement
> Affects Versions: 4.0.0-beta-1
> Reporter: okumin
> Assignee: okumin
> Priority: Major
> Labels: pull-request-available
>
> For example, GenericUDFSplit throws ClassCastException when a non-primitive
> type is given.
> {code:java}
> 0: jdbc:hive2://hive-hiveserver2:10000/defaul> select split(array('a,b,c'),
> ',');
> Error: Error while compiling statement: FAILED: ClassCastException
> org.apache.hadoop.hive.serde2.objectinspector.StandardConstantListObjectInspector
> cannot be cast to
> org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
> (state=42000,code=40000) {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)