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

[jira] [Created] (SPARK-24452) long = int*int or long = int+int may cause overflow.

Kazuaki Ishizaki created SPARK-24452:
----------------------------------------

             Summary: long = int*int or long = int+int may cause overflow.
                 Key: SPARK-24452
                 URL: https://issues.apache.org/jira/browse/SPARK-24452
             Project: Spark
          Issue Type: Bug
          Components: Spark Core, SQL
    Affects Versions: 2.4.0
            Reporter: Kazuaki Ishizaki


The following assignment cause overflow in right hand side. As a result, the result may be negative.
{code:java}
long = int*int
long = int+int{code}




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