Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48263] Collate function support for non UTF8_BINARY strings
### What changes were proposed in this pull request? collate("xx", "<non default>") does not work when there is a config for default collation set which configures non UTF8_BINARY collation as default. ### Why are the changes needed? Fixing the compatibility issue with default collation config and collate function. ### Does this PR introduce _any_ user-facing change? Customers will be able to execute collation(<string>, <collation>) function even when default collation config is configured to some other collation than UTF8_BINARY. We are expanding the surface area for cx. ### How was this patch tested? Added tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#46574 from nebojsa-db/SPARK-48263. Authored-by: Nebojsa Savic <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
- Loading branch information