Skip to content

bug: TruncateTransform.project when length > width#3519

Open
rambleraptor wants to merge 2 commits into
apache:mainfrom
rambleraptor:truncate-notstartswith-projection
Open

bug: TruncateTransform.project when length > width#3519
rambleraptor wants to merge 2 commits into
apache:mainfrom
rambleraptor:truncate-notstartswith-projection

Conversation

@rambleraptor

@rambleraptor rambleraptor commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Rationale for this change

We've diverged from the Java implementation for TruncateTransform.project

In Java, we return null when length > width. This means that the predicate can't be projected.

Are these changes tested?

We had one test that was (incorrectly) passing. I've changed up the test to test the three use-cases: length < width, length == width, length > width. This better matches the test suite from Java.

Are there any user-facing changes?

@rambleraptor rambleraptor requested a review from Fokko June 16, 2026 19:28
@rambleraptor rambleraptor changed the title bug: Truncate not_starts_with projection bug: TruncateTransform.project when length > width Jun 16, 2026
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.

2 participants