You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/02/03 21:13:35 UTC
[jira] [Resolved] (SPARK-5550) Custom UDF is case sensitive for
HiveContext
[ https://issues.apache.org/jira/browse/SPARK-5550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust resolved SPARK-5550.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
Issue resolved by pull request 4326
[https://github.com/apache/spark/pull/4326]
> Custom UDF is case sensitive for HiveContext
> --------------------------------------------
>
> Key: SPARK-5550
> URL: https://issues.apache.org/jira/browse/SPARK-5550
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Cheng Hao
> Fix For: 1.3.0
>
>
> SQL in HiveContext, should be case insensitive, however, the following query will fail.
> ```
> udf.register("random0", () => { Math.random()})
> assert(sql("SELECT RANDOM0() FROM src LIMIT 1").head().getDouble(0) >= 0.0)
> ```
--
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