Skip to content

fix(table): short-circuit empty global index ranges#606

Merged
JingsongLi merged 1 commit into
apache:mainfrom
QuakeWang:fix/empty-index-ranges
Jul 24, 2026
Merged

fix(table): short-circuit empty global index ranges#606
JingsongLi merged 1 commit into
apache:mainfrom
QuakeWang:fix/empty-index-ranges

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

Manifest row-range pruning fails open for legacy files without row-id metadata. An empty global index result can therefore still reach manifest and split planning, causing a planning error instead of returning an empty plan.

Brief change log

Short-circuit full and manifest-list scans when global index evaluation returns an empty range set. Add coverage for regular, traced, and delta scans in fast and full modes.

Tests

  • cargo fmt --all -- --check
  • cargo clippy --locked --all-targets --workspace --features fulltext,vortex -- -D warnings
  • cargo test --locked -p paimon --all-targets --features fulltext,vortex

API and Format

Documentation

Manifest row-range pruning fails open for files without row-id metadata. This lets an empty global index result reach split planning and fail instead of producing an empty plan.

Return before manifest reads when the evaluated range set is empty, and cover regular, traced, and delta scans in fast and full modes.

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

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit d7ebfba into apache:main Jul 24, 2026
25 of 26 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.

3 participants