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

    https://github.com/apache/spark/pull/21102#discussion_r203322643
  
    --- Diff: 
core/src/main/scala/org/apache/spark/util/collection/OpenHashSet.scala ---
    @@ -163,7 +187,7 @@ class OpenHashSet[@specialized(Long, Int) T: ClassTag](
        *                 to a new position (in the new data array).
        */
       def rehashIfNeeded(k: T, allocateFunc: (Int) => Unit, moveFunc: (Int, 
Int) => Unit) {
    -    if (_size > _growThreshold) {
    +    if (_occupied > _growThreshold) {
    --- End diff --
    
    For accuracy sake - my example snippet above will fail much earlier - due 
to OpenHashSet. MAX_CAPACITY. Though that is probably not the point anyway :-)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to