GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/21599
[SPARK-24598][SQL] Overflow on arithmetic operations returns incorrect
result
## What changes were proposed in this pull request?
When an overflow occurs performing an arithmetic operation, we are
returning an incorrect value. Instead, we should throw an exception, as stated
in the SQL standard.
## How was this patch tested?
added UT + existing UTs (improved)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-24598
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21599.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 #21599
----
commit 5c662f6987b7cdad016e4134f980fd0b8e02d220
Author: Marco Gaido <marcogaido91@...>
Date: 2018-06-20T12:20:04Z
[SPARK-24598][SQL] Overflow on airthmetic operation returns incorrect result
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]