We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b83354 commit 92e333eCopy full SHA for 92e333e
python/pyspark/streaming/dstream.py
@@ -56,8 +56,7 @@ def _sum(self):
56
"""
57
Add up the elements in this DStream.
58
59
- pass
60
- #return self._mapPartitions(lambda x: [sum(x)]).reduce(operator.add)
+ return self._mapPartitions(lambda x: [sum(x)]).reduce(operator.add)
61
62
def print_(self, label=None):
63
0 commit comments