You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2017/08/18 04:45:00 UTC

[jira] [Created] (SPARK-21777) Simpler Dataset.sample API

Reynold Xin created SPARK-21777:
-----------------------------------

             Summary: Simpler Dataset.sample API
                 Key: SPARK-21777
                 URL: https://issues.apache.org/jira/browse/SPARK-21777
             Project: Spark
          Issue Type: New Feature
          Components: SQL
    Affects Versions: 2.2.0
            Reporter: Reynold Xin
            Assignee: Reynold Xin


Dataset.sample requires a boolean flag withReplacement as the first argument. However, most of the time users simply want to sample some records without replacement. This ticket introduces a new sample function that simply takes in the fraction and seed.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org