You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "navya (JIRA)" <ji...@apache.org> on 2018/06/20 05:16:00 UTC

[jira] [Created] (SPARK-24598) SPARK SQL:Datatype overflow conditions gives incorrect result

navya created SPARK-24598:
-----------------------------

             Summary: SPARK SQL:Datatype overflow conditions gives incorrect result
                 Key: SPARK-24598
                 URL: https://issues.apache.org/jira/browse/SPARK-24598
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.2.0
            Reporter: navya


Execute an sql query, so that it results in overflow conditions. 

EX - SELECT 9223372036854775807 + 1 result = -9223372036854776000

 

Expected result - Error should be throw like mysql. 

mysql> SELECT 9223372036854775807 + 1;

ERROR 1690 (22003): BIGINT value is out of range in '(9223372036854775807 + 1)'



--
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