mihailom-db opened a new pull request, #45592: URL: https://github.com/apache/spark/pull/45592
### What changes were proposed in this pull request? This PR adds DEFAULT_COLLATION configuration to `SqlApiConf` and makes sure literals are created with default collation. This PR also renames misused isDefaultCollation in the code. ### Why are the changes needed? These changes are needed to keep clean and consistent code. Also this is closely related to casting rules. Default collation is defined as session level collation and not as UTF8_BINARY. We had UTF8_BINARY as default as implementation does not call ICU. ### Does this PR introduce _any_ user-facing change? Yes. Users can define different default collation, but casting in functions is still not supported. ### How was this patch tested? Added test to `CollationSuite`. ### 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]
