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

Yuming Wang updated SPARK-21625:
--------------------------------
    Description: 
SQRT:

{code:sql}
hive> select SQRT(-10.0);
OK
NULL
Time taken: 0.384 seconds, Fetched: 1 row(s)
{code}

{code:sql}
spark-sql> select SQRT(-10.0);
NaN
Time taken: 0.096 seconds, Fetched 1 row(s)
17/10/30 10:52:50 INFO SparkSQLCLIDriver: Time taken: 0.096 seconds, Fetched 1 
row(s)
spark-sql> 
{code}
----

ACOS, ASIN:
https://issues.apache.org/jira/browse/HIVE-17240

  was:
Both Hive and MySQL are null:

{code:sql}
hive> select SQRT(-10.0);
OK
NULL
Time taken: 0.384 seconds, Fetched: 1 row(s)
{code}


{code:sql}
mysql> select sqrt(-10.0);
+-----------+
| sqrt(-10.0) |
+-----------+
|      NULL |
+-----------+
1 row in set (0.00 sec)
{code}



> Add incompatible Hive UDF describe to DOC
> -----------------------------------------
>
>                 Key: SPARK-21625
>                 URL: https://issues.apache.org/jira/browse/SPARK-21625
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Documentation
>    Affects Versions: 2.3.0
>            Reporter: Yuming Wang
>
> SQRT:
> {code:sql}
> hive> select SQRT(-10.0);
> OK
> NULL
> Time taken: 0.384 seconds, Fetched: 1 row(s)
> {code}
> {code:sql}
> spark-sql> select SQRT(-10.0);
> NaN
> Time taken: 0.096 seconds, Fetched 1 row(s)
> 17/10/30 10:52:50 INFO SparkSQLCLIDriver: Time taken: 0.096 seconds, Fetched 
> 1 row(s)
> spark-sql> 
> {code}
> ----
> ACOS, ASIN:
> https://issues.apache.org/jira/browse/HIVE-17240



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to