andrej-db opened a new pull request, #49325: URL: https://github.com/apache/spark/pull/49325
### What changes were proposed in this pull request? This PR makes RPAD function translatable across connectors. Individual connectors can now support this via their dialects. ### Why are the changes needed? When trying to compare CHAR(...) and a literal, Spark injects a RPAD function to make the CHAR parameter the same length. This behaviour is per ANSI standard. The problem is that RPAD is not only an unsupported, but an untranslatable function. This prevents CHAR + literal comparison pushdown. Solution is to support RPAD pushdowns and implement it when needed ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? This PR only introduces the ability to support the RPAD pushdown. Individual connectors will have their own tests. ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
