dongjoon-hyun commented on code in PR #38182:
URL: https://github.com/apache/spark/pull/38182#discussion_r990824057


##########
core/src/main/java/org/apache/spark/util/collection/TimSort.java:
##########
@@ -788,7 +788,7 @@ private void mergeLo(int base1, int len1, int base2, int 
len2) {
           if (--len1 == 1)
             break outer;
           minGallop--;
-        } while (count1 >= MIN_GALLOP | count2 >= MIN_GALLOP);
+        } while (count1 >= MIN_GALLOP || count2 >= MIN_GALLOP);

Review Comment:
   Thank you. Actually, this was a copy of Android TimSort.java. I'm just 
curious if Android change like your proposal recently?
   - 
https://android.googlesource.com/platform/libcore/+/android-6.0.1_r77/luni/src/main/java/java/util/TimSort.java#749



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to