Github user pwendell-api commented on a diff in the pull request:

    https://github.com/apache/spark/pull/705#discussion_r13414698
  
    --- Diff: python/pyspark/tests.py ---
    @@ -188,6 +188,21 @@ def test_deleting_input_files(self):
             os.unlink(tempFile.name)
             self.assertRaises(Exception, lambda: filtered_data.count())
     
    +    def testAggregateByKey(self):
    +        data = self.sc.parallelize([(1, 1), (1, 1), (3, 2), (5, 1), (5, 
3)], 2)
    +        def seqOp(x, y):
    +            x.add(y)
    +            return x
    +
    +        def combOp(x, y):
    +            x |= y
    +            return x
    +          
    +        sets = dict(pairs.aggregateByKey(set(), seqOp, combOp).collect())
    --- End diff --
    
    @sryza I think this test is broken. "pairs" is not defined in this function.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to