You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/07/07 09:58:04 UTC
[jira] [Commented] (SPARK-6912) Throw an AnalysisException when
unsupported Java Map types used in Hive UDF
[ https://issues.apache.org/jira/browse/SPARK-6912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616346#comment-14616346 ]
Apache Spark commented on SPARK-6912:
-------------------------------------
User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/7257
> Throw an AnalysisException when unsupported Java Map<K,V> types used in Hive UDF
> --------------------------------------------------------------------------------
>
> Key: SPARK-6912
> URL: https://issues.apache.org/jira/browse/SPARK-6912
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.4.0
> Reporter: Takeshi Yamamuro
>
> The current implementation can't handle Map<K,V> as a return type in Hive UDF.
> We assume an UDF below;
> public class UDFToIntIntMap extends UDF {
> public Map<Integer, Integer> evaluate(Object o);
> }
> Hive supports this type, and see a link below for details;
> https://github.com/kyluka/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFBridge.java#L163
> https://github.com/l1x/apache-hive/blob/master/hive-0.8.1/src/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorFactory.java#L118
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org