Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/7401#discussion_r41718283
--- Diff: python/pyspark/rdd.py ---
@@ -296,7 +296,7 @@ def flatMap(self, f, preservesPartitioning=False):
>>> rdd = sc.parallelize([2, 3, 4])
>>> sorted(rdd.flatMap(lambda x: range(1, x)).collect())
- [1, 1, 1, 2, 2, 3]
+ [1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4]
--- End diff --
I think that the purpose of this change was to induce a test failure to
verify that the output reporting was correct.
---
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]