LuciferYang opened a new pull request, #38182:
URL: https://github.com/apache/spark/pull/38182

   ### What changes were proposed in this pull request?
   This pr changes `while (count1 >= MIN_GALLOP | count2 >= MIN_GALLOP)` in 
`TimSort` to `while (count1 >= MIN_GALLOP || count2 >= MIN_GALLOP)`.
   
   
   
   ### Why are the changes needed?
   The or operation of 2 boolean expressions should use `||`.
   When `||` is used, if the first expression is true, the second expression 
does't need to be calculated. When `|` is used, 2 expressions must be 
calculated.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass GitHub Actions


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