spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-23893) Possible overflow in long = int * int
Date Sat, 07 Apr 2018 14:26:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-23893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16429391#comment-16429391
] 

Apache Spark commented on SPARK-23893:
--------------------------------------

User 'kiszk' has created a pull request for this issue:
https://github.com/apache/spark/pull/21002

> Possible overflow in long = int * int
> -------------------------------------
>
>                 Key: SPARK-23893
>                 URL: https://issues.apache.org/jira/browse/SPARK-23893
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core, SQL
>    Affects Versions: 2.3.0
>            Reporter: Kazuaki Ishizaki
>            Priority: Minor
>
> To perform `int * int` and then to cast to `long` may cause overflow if the MSB of the
multiplication result is `1`. In other words, the result would be negative due to sign extension.



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


Mime
View raw message