GitHub user jiangxb1987 opened a pull request: https://github.com/apache/spark/pull/22101
[SPARK-23207][Core][FOLLOWUP] Fix RecordBinaryComparator when subtraction between two words is divisible by Integer.MAX_VALUE. ## What changes were proposed in this pull request? https://github.com/apache/spark/pull/22079#discussion_r209705612 It is possible for two objects to be unequal and yet we consider them as equal with this code, if the long values are separated by Int.MaxValue. This PR fixes the issue. ## How was this patch tested? N/A You can merge this pull request into a Git repository by running: $ git pull https://github.com/jiangxb1987/spark fix-rbc Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/22101.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 #22101 ---- commit 1f6b2594ebe8b50e4cb2fcde15181cfa9a17f48c Author: Xingbo Jiang <xingbo.jiang@...> Date: 2018-08-14T04:04:40Z fix ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org