You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cheng Hao (JIRA)" <ji...@apache.org> on 2015/02/03 07:48:35 UTC

[jira] [Updated] (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 ]

Cheng Hao updated SPARK-5550:
-----------------------------
    Description: 
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)
```

  was:
SQL in HiveContext, should be case insensitive, however, the following query will fail.
{panel}
udf.register("random0", () => { Math.random()})
assert(sql("SELECT RANDOM0() FROM src LIMIT 1").head().getDouble(0) >= 0.0)
{panel}


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