Github user dorx commented on a diff in the pull request:
https://github.com/apache/spark/pull/1025#discussion_r14906349
--- Diff: core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
---
@@ -195,6 +193,37 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
}
/**
+ * Return a subset of this RDD sampled by key (via stratified sampling).
+ *
+ * If exact set to true, we guarantee, with high probability, a sample
size =
--- End diff --
So I was told that a rule of thumb is summarize what the function does in
one line first and then dive into the details. I can add the explanation in a
second paragraph (with a line skip) for elaboration on sampleByKey. For future
reference, do you prefer a big chunk of text up front?
---
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.
---