Yuming Wang created SPARK-28028:
-----------------------------------
Summary: Cast numeric to integral type need round
Key: SPARK-28028
URL: https://issues.apache.org/jira/browse/SPARK-28028
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 3.0.0
Reporter: Yuming Wang
For example:
{code:sql}
select cast(-1.5 as smallint);
{code}
Spark SQL returns {{-1}}, but PostgreSQL returns {{-2}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]