Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Aug 16, 2014
1 parent efa23df commit b40bae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ def groupByKey(it):
BatchedSerializer(PickleSerializer(), 1024), 10)
sorter = ExternalSorter(memory * 0.9, ser)
it = sorter.sorted(it, key=operator.itemgetter(0))
return imap(lambda (k, v): ResultIterable(v), GroupByKey(it))
return imap(lambda (k, v): (k, ResultIterable(v)), GroupByKey(it))

else:
# this is faster than sort based
Expand Down

0 comments on commit b40bae7

Please sign in to comment.