Skip to content

[core] Fix unsupported predicate fallback for global indexes - #8790

Merged
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:fix-global-index-predicates
Jul 22, 2026
Merged

[core] Fix unsupported predicate fallback for global indexes#8790
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:fix-global-index-predicates

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

GlobalIndexReader inherited predicate defaults that could throw for unsupported IS NAN, BETWEEN, and NOT BETWEEN queries instead of falling back safely.

Return unsupported results conservatively, forward NOT BETWEEN through offset and union readers, preserve constant-reader behavior, and add regression coverage.

Tests

  • mvn -pl paimon-common -DwildcardSuites=none -Dtest=GlobalIndexEvaluatorTest test

Global index readers inherited range and IS NAN visitor defaults
that can throw when an index does not support those predicates.

Return unsupported results conservatively, preserve wrapper and constant
reader behavior, and add regression coverage.

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 67435d2 into apache:master Jul 22, 2026
13 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