xuanyuanking opened a new pull request #28937:
URL: https://github.com/apache/spark/pull/28937


   ### What changes were proposed in this pull request?
   Bug fix for overflow case in `UTF8String.substringSQL`.
   
   ### Why are the changes needed?
   SQL query `SELECT SUBSTRING("abc", -1207959552, -1207959552)` incorrectly 
returns` "abc"` against expected output of `""`. For query `SUBSTRING("abc", 
-100, -100)`, we'll get the right output of `""`.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, bug fix for the overflow case.
   
   ### How was this patch tested?
   New UT.
   


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to