GitHub user sylvinus opened a pull request:

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

    [SPARK-16740][SQL] Fix Long overflow in LongToUnsafeRowMap

    ## What changes were proposed in this pull request?
    
    Avoid overflow of Long type causing a NegativeArraySizeException a few 
lines later.
    
    ## How was this patch tested?
    
    Unit tests for HashedRelationSuite still pass.
    
    I can confirm the python script I included in 
https://issues.apache.org/jira/browse/SPARK-16740 works fine with this patch. 
Unfortunately I don't have the knowledge/time to write a Scala test case for 
HashedRelationSuite right now. As the patch is pretty obvious I hope it can be 
included without this.
    
    Thanks!


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

    $ git pull https://github.com/sylvinus/spark master

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

    https://github.com/apache/spark/pull/14373.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 #14373
    
----
commit a30ca9f4cfde295a811cbe144d6cf165be1227c2
Author: Sylvain Zimmer <[email protected]>
Date:   2016-07-26T21:47:26Z

    [SPARK-16740][SQL] Fix Long overflow in LongToUnsafeRowMap

----


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