[
https://issues.apache.org/jira/browse/SPARK-20933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030706#comment-16030706
]
Apache Spark commented on SPARK-20933:
--------------------------------------
User '10110346' has created a pull request for this issue:
https://github.com/apache/spark/pull/18156
> when the input parameter is float type for ’round ’ or ‘bround’ ,it can't
> work well
> ------------------------------------------------------------------------------------
>
> Key: SPARK-20933
> URL: https://issues.apache.org/jira/browse/SPARK-20933
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: liuxian
>
> spark-sql>select round(cast(3.1415 as float), 3);
> spark-sql>3.141
> For this case, the result we expected is 3.142
> spark-sql>select bround(cast(3.1415 as float), 3);
> spark-sql>3.141
> For this case, the result we expected is 3.142
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]