Skip to content

Add collation to constant comparisons#471

Merged
staticlibs merged 1 commit into
duckdb:mainfrom
staticlibs:like_collate
May 11, 2026
Merged

Add collation to constant comparisons#471
staticlibs merged 1 commit into
duckdb:mainfrom
staticlibs:like_collate

Conversation

@staticlibs
Copy link
Copy Markdown
Member

This PR adds C collation to generated constant comparison pushdowns. This allows to avoid the problem with collation sensitive comparison when the LIKE operator is transformed to comparison by the optimizer.

Fixes: #364
Fixes: #462

This PR adds `C` collation to generated constant comparison pushdowns.
This allows to avoid the problem with collation sensitive comparison
when the `LIKE` operator is transformed to comparison by the optimizer.

Fixes: duckdb#364
Fixes: duckdb#462
@staticlibs staticlibs merged commit 6b2b12c into duckdb:main May 11, 2026
7 checks passed
@staticlibs staticlibs deleted the like_collate branch May 11, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Like operator returns wrong result if string ends with a number LIKE translation is collate sensitive

1 participant