Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2928#discussion_r19362108
  
    --- Diff: 
core/src/main/scala/org/apache/spark/util/random/StratifiedSamplingUtils.scala 
---
    @@ -245,9 +245,9 @@ private[spark] object StratifiedSamplingUtils extends 
Logging {
               // Must use the same invoke pattern on the rng as in getSeqOp 
for with replacement
               // in order to generate the same sequence of random numbers when 
creating the sample
               val copiesAccepted = if (acceptBound == 0) 0L else 
rng.nextPoisson(acceptBound)
    -          val copiesWailisted = 
rng.nextPoisson(finalResult(key).waitListBound)
    +          val copiesWaitlisted = 
rng.nextPoisson(finalResult(key).waitListBound)
    --- End diff --
    
    Good catch!


---
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

Reply via email to