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/12 14:47:00 UTC

[jira] [Created] (SPARK-28028) Cast numeric to integral type need round

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org