Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/15889#discussion_r88439190
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
@@ -1648,13 +1650,13 @@ class Dataset[T] private[sql](
/**
* Returns a new [[Dataset]] by sampling a fraction of rows, using a
user-supplied seed.
*
- * Note: this is NOT guaranteed to provide exactly the fraction of the
count
- * of the given [[Dataset]].
- *
* @param withReplacement Sample with replacement or not.
* @param fraction Fraction of rows to generate.
* @param seed Seed for sampling.
*
+ * @note This is NOT guaranteed to provide exactly the fraction of the
count
+ * of the given [[Dataset]].
+ *
--- End diff --
- Scala
<img width="724" alt="2016-11-17 8 56 08"
src="https://cloud.githubusercontent.com/assets/6477701/20388527/a010b5a6-ad08-11e6-99bf-74f8ab2e75b8.png">
- Java
<img width="603" alt="2016-11-17 8 55 46"
src="https://cloud.githubusercontent.com/assets/6477701/20388530/a26dd5d6-ad08-11e6-903f-d26806c56cfd.png">
---
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]