spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Armbrust (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-3582) Spark SQL having issue with existing Hive UDFs which take Map as a parameter
Date Tue, 23 Sep 2014 18:49:34 GMT

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

Michael Armbrust resolved SPARK-3582.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

> Spark SQL having issue with existing Hive UDFs which take Map as a parameter
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-3582
>                 URL: https://issues.apache.org/jira/browse/SPARK-3582
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.1.0
>            Reporter: Saurabh Santhosh
>            Assignee: Adrian Wang
>             Fix For: 1.2.0
>
>
> I have a UDF with the following evaluate method :
> public Text evaluate(Text argument, Map<Text, Text> params)
> And when i tried invoking this UDF, i was getting the following error.
> scala.MatchError: interface java.util.Map (of class java.lang.Class)
> at org.apache.spark.sql.hive.HiveInspectors$class.javaClassToDataType(HiveInspectors.scala:35)
> at org.apache.spark.sql.hive.HiveFunctionRegistry.javaClassToDataType(hiveUdfs.scala:37)
> had a look at HiveInspectors.scala and was not able to see any resolver for java.util.Map




--
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


Mime
View raw message