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

   ### What changes were proposed in this pull request?
   This fixes https://issues.apache.org/jira/browse/SPARK-40089 where the 
prefix can overflow in some cases and the code assumes that the overflow is 
always on the negative side, not the positive side.
   
   ### Why are the changes needed?
   This adds a check when the overflow does happen to know what is the proper 
prefix to return.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No, unless you consider getting the sort order correct a user facing change.
   
   
   ### How was this patch tested?
   I tested manually with the file in the JIRA and I added a small unit test.
   


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