GitHub user mgaido91 opened a pull request:

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

    [SPARK-25457][SQL] IntegralDivide returns data type of the operands

    ## What changes were proposed in this pull request?
    
    The PR proposes to return the data type of the operands as a result for the 
`div` operator. Before the PR, `bigint` is always returned. It introduces also 
a `spark.sql.legacy.integralDivide.returnBigint` config in order to let the 
users restore the legacy behavior.
    
    ## 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-25457

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

    https://github.com/apache/spark/pull/22465.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 #22465
    
----
commit 19ff3689e09e157cbcc42e7e07538707ba3b4a3f
Author: Marco Gaido <marcogaido91@...>
Date:   2018-09-19T10:33:59Z

    [SPARK-25457][SQL] IntegralDivide returns data type of the operands

----


---

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

Reply via email to