Skip to content

API: Rewrite string truncate equality predicates#16383

Open
zhjwpku wants to merge 2 commits into
apache:mainfrom
zhjwpku:core-truncate-eq-starts-with
Open

API: Rewrite string truncate equality predicates#16383
zhjwpku wants to merge 2 commits into
apache:mainfrom
zhjwpku:core-truncate-eq-starts-with

Conversation

@zhjwpku
Copy link
Copy Markdown
Contributor

@zhjwpku zhjwpku commented May 17, 2026

Translate equality predicates on string truncate transforms to startsWith predicates when the literal length matches the truncate width.

Keep shorter literals as truncate equality predicates and simplify longer literals to alwaysFalse because truncate results cannot exceed the configured width.

Translate equality predicates on string truncate transforms to
startsWith predicates when the literal length matches the truncate
width.

Keep shorter literals as truncate equality predicates and simplify
longer literals to alwaysFalse because truncate results
cannot exceed the configured width.
@github-actions github-actions Bot added the API label May 17, 2026
@zhjwpku zhjwpku changed the title Core: Rewrite string truncate equality predicates API: Rewrite string truncate equality predicates May 17, 2026
@github-actions github-actions Bot added the data label May 17, 2026
Use short truncate equality literals so row-group filter tests continue to exercise conservative handling for non-reference predicates.

Long string literals are now simplified as impossible by the truncate equality binding rewrite.
@zhjwpku zhjwpku force-pushed the core-truncate-eq-starts-with branch from fe1ed1b to b497043 Compare May 17, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant