Github user jkbradley commented on the pull request: https://github.com/apache/spark/pull/3702#issuecomment-67117735 @srowen Trying to guarantee exactly the requested number of points does seem like more trouble than it is worth. It might require collecting the # of points in each partition beforehand, choosing a start offset for each partition (on the driver), and then taking the samples. If it's a choice between (a) specifying downsamplingFactor and (b) specifying a rough numBins, I might still vote for (b) since it would permit a safe default value. What do you think?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org