GitHub user sameeragarwal opened a pull request:

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

    [SPARK-14774][SQL] Write unscaled values in ColumnVector.putDecimal

    ## What changes were proposed in this pull request?
    
    We recently made `ColumnarBatch.row` mutable and added a new 
`ColumnVector.putDecimal` method to support putting `Decimal` values in the 
`ColumnarBatch`. This unfortunately introduced a bug wherein we were not 
updating the vector with the proper unscaled values.
    
    ## How was this patch tested?
    
    This codepath is hit only when the vectorized aggregate hashmap is enabled. 
https://github.com/apache/spark/pull/12440 makes sure that a number of 
regression tests/benchmarks test this bugfix.

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

    $ git pull https://github.com/sameeragarwal/spark fix-bigdecimal

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

    https://github.com/apache/spark/pull/12541.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 #12541
    
----
commit 85fdb84b3f08638ee2714aa65a33cf8552fab3ee
Author: Sameer Agarwal <[email protected]>
Date:   2016-04-20T22:28:29Z

    Fix bug in ColumnVector.putDecimal

----


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

Reply via email to