Github user mattf commented on a diff in the pull request:
https://github.com/apache/spark/pull/2383#discussion_r17541864
--- Diff: python/pyspark/tests.py ---
@@ -586,6 +586,17 @@ def test_repartitionAndSortWithinPartitions(self):
self.assertEquals(partitions[0], [(0, 5), (0, 8), (2, 6)])
self.assertEquals(partitions[1], [(1, 3), (3, 8), (3, 8)])
+ def test_distinct(self):
+ rdd = self.sc.parallelize((1, 2, 3)*10).distinct()
+ self.assertEquals(rdd.count(), 3)
+
+ def test_distinct_numPartitions(self):
--- End diff --
can i have a pass? it looks like the python tests could use some attention
during the test speed increase effort, but it'd rather wait for a big speedup
recommendation before altering these cases.
though, if this is important to you, i'll do it
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]