Skip to content

Commit b40bae7

Browse files
committed
bugfix
1 parent efa23df commit b40bae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/rdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ def groupByKey(it):
16271627
BatchedSerializer(PickleSerializer(), 1024), 10)
16281628
sorter = ExternalSorter(memory * 0.9, ser)
16291629
it = sorter.sorted(it, key=operator.itemgetter(0))
1630-
return imap(lambda (k, v): ResultIterable(v), GroupByKey(it))
1630+
return imap(lambda (k, v): (k, ResultIterable(v)), GroupByKey(it))
16311631

16321632
else:
16331633
# this is faster than sort based

0 commit comments

Comments
 (0)