You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by rxin <gi...@git.apache.org> on 2015/11/11 20:48:30 UTC
[GitHub] spark pull request: [SPARK-11658] simplify documentation for PySpa...
Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/9631#discussion_r44577159
--- Diff: python/pyspark/rdd.py ---
@@ -1760,9 +1760,8 @@ def combineByKey(self, createCombiner, mergeValue, mergeCombiners,
In addition, users can control the partitioning of the output RDD.
>>> x = sc.parallelize([("a", 1), ("b", 1), ("a", 1)])
- >>> def f(x): return x
>>> def add(a, b): return a + str(b)
- >>> sorted(x.combineByKey(str, add, add).collect())
+ >>> x.combineByKey(str, add, add).collect()
[('a', '11'), ('b', '1')]
--- End diff --
the ordering is not guaranteed here, is 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org