Skip to content

Commit af3713a

Browse files
author
Davies Liu
committed
make sure it's iterator
1 parent 67772dd commit af3713a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/shuffle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ class GroupByKey(object):
659659
"""
660660

661661
def __init__(self, iterator):
662-
self.iterator = iterator
662+
self.iterator = iter(iterator)
663663
self.next_item = None
664664

665665
def __iter__(self):

0 commit comments

Comments
 (0)