Skip to content

[flink] Fix literal conversion for BETWEEN predicates - #9310

Merged
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:flink-between-literal
Aug 20, 2026
Merged

[flink] Fix literal conversion for BETWEEN predicates#9310
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:flink-between-literal

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

PredicateConverter passed BETWEEN bounds directly as Flink expression objects instead of converting them to typed Paimon literal values. This could produce predicates with incompatible bound types, especially when implicit type conversion or null bounds were involved.

Convert both bounds using the referenced field type before building the predicate.

Tests

  • Added coverage for implicit numeric conversion, inclusive boundaries, null input, and null bounds.
  • Passed PredicateConverterTest with both Flink 1 and Flink 2 profiles.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@JingsongLi
JingsongLi merged commit 27dad39 into apache:master Aug 20, 2026
12 checks passed
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