Skip to content

[SPARK-48621][SQL] Fix Like simplification in Optimizer for collated strings#46976

Closed
uros-db wants to merge 3 commits intoapache:masterfrom
uros-db:like-simplification
Closed

[SPARK-48621][SQL] Fix Like simplification in Optimizer for collated strings#46976
uros-db wants to merge 3 commits intoapache:masterfrom
uros-db:like-simplification

Conversation

@uros-db
Copy link
Contributor

@uros-db uros-db commented Jun 13, 2024

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.

@github-actions github-actions bot added the SQL label Jun 13, 2024
@uros-db
Copy link
Contributor Author

uros-db commented Jun 13, 2024

adding @mihailom-db @stevomitric for review

@uros-db uros-db requested a review from yaooqinn June 14, 2024 09:23
@yaooqinn yaooqinn closed this in 8ee8aba Jun 14, 2024
@yaooqinn
Copy link
Member

Merged to master, thanks @uros-db @mihailom-db

Copy link
Contributor

@beliefer beliefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants