Skip to content

[core] Bound scalar index ranges with an ordinary scan fallback - #11475

Draft
JingsongLi wants to merge 8 commits into
apache:masterfrom
JingsongLi:codex/split-11429-range-limit
Draft

JingsongLi wants to merge 8 commits into
apache:masterfrom
JingsongLi:codex/split-11429-range-limit

Conversation

@JingsongLi

Copy link
Copy Markdown
Contributor

Purpose

Add the opt-in data-evolution.scalar-index.max-selection-ranges table option for eager scalar global index planning. When the combined candidate Bitmap exceeds the cap, plan ordinary data splits on the pinned snapshot and evaluate the original predicate as a residual filter. An unset value or zero leaves the cap disabled. In FAST mode, ordinary fallback can include matching rows outside index coverage.

This cumulative draft is stage 2 of 4. It includes the preceding bounded Bitmap utilities and the indexed-split row range merge. preceding draft #11474 · indexed-split row range merge #11473

Review this stage in its incremental commit. incremental commit 96a9f53a55 · original PR #11429

Tests

121 tests passed on JDK 8 across BtreeGlobalIndexTableTest, CompositeBTreeTableTest, DataEvolutionBatchScanTest, and GlobalIndexOptionsTest. They cover exact limits, the zero override, a pinned snapshot, FULL/DETAIL/FAST fallback, and FAST AND, OR, and composite BTree predicates.

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.

1 participant