Skip to content

fix(index): propagate fallible with_projection in btree index build#471

Merged
QuakeWang merged 1 commit into
apache:mainfrom
JunRuiLee:hotfix/btree-with-projection-result
Jul 7, 2026
Merged

fix(index): propagate fallible with_projection in btree index build#471
QuakeWang merged 1 commit into
apache:mainfrom
JunRuiLee:hotfix/btree-with-projection-result

Conversation

@JunRuiLee

Copy link
Copy Markdown
Contributor

Purpose

CI on main is red: the check job fails clippy with an unused Result in btree_global_index_build_builder.rs:562. #454 was written before #460 made ReadBuilder::with_projection fallible and merged without a rebase check against it. Every open PR's merge CI now fails on the same error regardless of its own changes.

(Hotfix for CI breakage — no linked issue, per the contribution checklist exception.)

Brief change log

Propagate the Result with ?extract_index_rows already returns Result, and a projection failure here (unknown/duplicate column) should abort the index build rather than silently read the full row.

Tests

cargo clippy -p paimon --all-targets --features fulltext,vortex,mosaic -- -D warnings: clean (was failing).
cargo test -p paimon --lib btree: 58 passed.

API and Format

None.

Documentation

None.

apache#454 predates apache#460's fallible with_projection and merged without a
rebase check; the unused Result fails clippy -D warnings on main and on
every open PR's merge CI.

@QuakeWang QuakeWang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@QuakeWang QuakeWang merged commit 94a5565 into apache:main Jul 7, 2026
12 checks passed
@JunRuiLee JunRuiLee deleted the hotfix/btree-with-projection-result branch July 7, 2026 13:12
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