[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to