-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48621][SQL] Fix Like simplification in Optimizer for collated …
…strings ### What changes were proposed in this pull request? Enable `LikeSimplification` optimizer rule for collated strings. ### Why are the changes needed? Optimize how `Like` expression works with collated strings and ensure collation awareness when replacing `Like` expressions with `StartsWith` / `EndsWith` / `Contains` / `EqualTo` under special conditions. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? New e2e sql tests in `CollationSQLRegexpSuite`. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #46976 from uros-db/like-simplification. Authored-by: Uros Bojanic <[email protected]> Signed-off-by: Kent Yao <[email protected]>
- Loading branch information
Showing
2 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters