GitHub user mgaido91 opened a pull request:

    https://github.com/apache/spark/pull/20350

    [SPARK-23179][SQL] Support option to throw exception if overflow occurs

    ## What changes were proposed in this pull request?
    
    SQL ANSI 2011 states that in case of overflow during arithmetic operations, 
an exception should be thrown. This is what most of the SQL DBs do (eg. 
SQLServer, DB2). Hive currently returns NULL (as Spark does) but HIVE-18291 is 
open to be SQL compliant.
    
    The PR introduce an option to decide which behavior Spark should follow, 
ie. returning NULL on overflow or throwing an exception.
    
    ## How was this patch tested?
    
    added UTs


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mgaido91/spark SPARK-23179

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20350.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 #20350
    
----
commit 449b69c0804622cc747d280d28415e93144ca272
Author: Marco Gaido <marcogaido91@...>
Date:   2018-01-22T14:32:04Z

    [SPARK-23179][SQL] Support option to throw exception if overflow occurs

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to