GitHub user kiszk opened a pull request:
https://github.com/apache/spark/pull/15907
[SPARK-18458][CORE] core dumped running Spark SQL on large data volume
(100TB)
## What changes were proposed in this pull request?
This PR avoids that a result of an expression is negative due to signed
integer overflow (e.g. 0x10?????? * 8 < 0). This PR casts each operand to
`long` before executing a calculation. Since the result is interpreted as long,
the result of the expression is positive.
## How was this patch tested?
Manually executed query82 of TPC-DS with 100TB
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kiszk/spark SPARK-18458
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15907.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15907
----
commit 3821a5266d2fb1d760a1d255a19579baba2720c7
Author: Kazuaki Ishizaki <[email protected]>
Date: 2016-11-16T18:38:42Z
avoid signed integer overflow (0x10?????? * 8) by using long multiplication
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]