dgd-contributor opened a new pull request #32684: URL: https://github.com/apache/spark/pull/32684
### What changes were proposed in this pull request? Spark conv function is from MySQL and it's better to follow the MySQL behavior. MySQL returns the max unsigned long if the input string is too big, and Spark should follow it. However, seems Spark has different behavior in two cases: MySQL allows leading spaces but Spark does not. If the input string is way too long, Spark fails with ArrayIndexOutOfBoundException This patch now help conv follow behavior in those two cases conv allows leading spaces conv will return the max unsigned long with the input string is way too long ### Why are the changes needed? Correctness ### Does this PR introduce _any_ user-facing change? Yes, as point out above ### How was this patch tested? Add 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
