[jira] [Updated] (SPARK-19225) Spark SQL round constant double return null

2019-05-20 Thread Hyukjin Kwon (JIRA)


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

Hyukjin Kwon updated SPARK-19225:
-
Labels: bulk-closed  (was: )

> 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.0.0, 2.0.1, 2.0.2, 2.1.0
>Reporter: discipleforteen
>Priority: Major
>  Labels: bulk-closed
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> 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
(v7.6.3#76005)

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



[jira] [Updated] (SPARK-19225) Spark SQL round constant double return null

2017-01-15 Thread Sean Owen (JIRA)

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

Sean Owen updated SPARK-19225:
--
Target Version/s:   (was: 2.1.1)
   Fix Version/s: (was: 2.1.1)

Read http://spark.apache.org/contributing.html first

A self-contained reproduction would be helpful.

> 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.0.0, 2.0.1, 2.0.2, 2.1.0
>Reporter: discipleforteen
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org