diff --git a/python/pyspark/resultiterable.py b/python/pyspark/resultiterable.py index fbb5832fd8f03..7f418f8d2e29a 100644 --- a/python/pyspark/resultiterable.py +++ b/python/pyspark/resultiterable.py @@ -19,7 +19,7 @@ import collections -class ResultIterable(collections.Iterator): +class ResultIterable(collections.Iterable): """ A special result iterable. This is used because the standard iterator can not be pickled """