aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMatei Zaharia <matei@databricks.com>2014-06-05 23:01:48 -0700
committerMatei Zaharia <matei@databricks.com>2014-06-05 23:01:48 -0700
commitb45c13e7d798f97b92f1a6329528191b8d779c4f (patch)
tree44461fc940b1d4d62340378fde0d086dcc2b2673 /sql
parent9bad0b73722fb359f14db864e69aa7efde3588c5 (diff)
downloadspark-b45c13e7d798f97b92f1a6329528191b8d779c4f.tar.gz
spark-b45c13e7d798f97b92f1a6329528191b8d779c4f.tar.bz2
spark-b45c13e7d798f97b92f1a6329528191b8d779c4f.zip
SPARK-2043: ExternalAppendOnlyMap doesn't always find matching keys
The current implementation reads one key with the next hash code as it finishes reading the keys with the current hash code, which may cause it to miss some matches of the next key. This can cause operations like join to give the wrong result when reduce tasks spill to disk and there are hash collisions, as values won't be matched together. This PR fixes it by not reading in that next key, using a peeking iterator instead. Author: Matei Zaharia <matei@databricks.com> Closes #986 from mateiz/spark-2043 and squashes the following commits: 0959514 [Matei Zaharia] Added unit test for having many hash collisions 892debb [Matei Zaharia] SPARK-2043: don't read a key with the next hash code in ExternalAppendOnlyMap, instead use a buffered iterator to only read values with the current hash code.
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions