Github user felixcheung commented on the pull request: https://github.com/apache/spark/pull/10160#issuecomment-162412228 @gatorsmile Sure - I guess the main thing is to ensure the seed is getting set. How about: ``` count1 <- count(sample(df, FALSE, 0.1, 0)) count2 <- count(sample(df, FALSE, 0.1, 0)) expect_equal(count1, count2) ``` ?
--- 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