You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/06/21 08:26:00 UTC
[jira] [Created] (SPARK-28135) ceiling/floor returns incorrect
values
Yuming Wang created SPARK-28135:
-----------------------------------
Summary: ceiling/floor returns incorrect values
Key: SPARK-28135
URL: https://issues.apache.org/jira/browse/SPARK-28135
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.0.0
Reporter: Yuming Wang
{noformat}
postgres=# select ceiling(1.2345678901234e+200::float8), floor(1.2345678901234e+200::float8);
ceiling | floor
----------------------+----------------------
1.2345678901234e+200 | 1.2345678901234e+200
(1 row)
{noformat}
{noformat}
spark-sql> select ceiling(double(1.2345678901234e+200)), floor(double(1.2345678901234e+200));
9223372036854775807 9223372036854775807
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org