You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "discipleforteen (JIRA)" <ji...@apache.org> on 2017/01/15 03:51:26 UTC
[jira] [Created] (SPARK-19225) Spark SQL round constant double
return null
discipleforteen created SPARK-19225:
---------------------------------------
Summary: Spark SQL round constant double return null
Key: SPARK-19225
URL: https://issues.apache.org/jira/browse/SPARK-19225
Project: Spark
Issue Type: Bug
Affects Versions: 2.1.0, 2.0.2, 2.0.1, 2.0.0
Reporter: discipleforteen
Fix For: 2.1.1
Spark SQL round constant double value may return null . like 'select round(4.4, 2)' return null in spark 2.x. it's not compatible with spark 1.x version. it seems 4.4 is casted to decimal with new SqlBase.g4 , which is casted to double in spark 1.x version. round decimal 4.4, 2 get null in changeprecision...
--
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