spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-20876) If the input parameter is float type for ceil or floor ,the result is not we expected
Date Wed, 31 May 2017 04:13:04 GMT

    [ https://issues.apache.org/jira/browse/SPARK-20876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030604#comment-16030604
] 

Apache Spark commented on SPARK-20876:
--------------------------------------

User '10110346' has created a pull request for this issue:
https://github.com/apache/spark/pull/18155

> If the input parameter is float type for  ceil or floor ,the result is not we expected
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-20876
>                 URL: https://issues.apache.org/jira/browse/SPARK-20876
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: liuxian
>            Assignee: liuxian
>             Fix For: 2.3.0
>
>
> spark-sql>SELECT ceil(cast(12345.1233 as float));
> spark-sql>12345
> For this case, the result we expected is 12346
> spark-sql>SELECT floor(cast(-12345.1233 as float));
> spark-sql>-12345
> For this case, the result we expected is  -12346



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message