GitHub user cxzl25 opened a pull request: https://github.com/apache/spark/pull/21311
[SPARK-24257][SQL]LongToUnsafeRowMap calculate the new size may be wrong ## What changes were proposed in this pull request? LongToUnsafeRowMap Calculate the new size simply by multiplying by 2 At this time, the size of the application may not be enough to store data Some data is lost and the data read out is dirty ## How was this patch tested? HashedRelationSuite test("LongToUnsafeRowMap with big values") Please review http://spark.apache.org/contributing.html before opening a pull request. You can merge this pull request into a Git repository by running: $ git pull https://github.com/cxzl25/spark fix_LongToUnsafeRowMap_page_size Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21311.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 #21311 ---- commit d9d8e62c2de7d9d04534396ab3bbf984ab16c7f5 Author: sychen <sychen@...> Date: 2018-05-12T11:14:17Z LongToUnsafeRowMap Calculate the new correct size ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org