Skip to content

[core] Build row range indexes directly from bitmap ranges - #9882

Closed
jerry-024 wants to merge 1 commit into
apache:masterfrom
jerry-024:optimize-row-range-from-bitmap
Closed

jerry-024 wants to merge 1 commit into
apache:masterfrom
jerry-024:optimize-row-range-from-bitmap

Conversation

@jerry-024

@jerry-024 jerry-024 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Purpose

Reduce scan-planning overhead and memory allocations when building row-range indexes from bitmap results, especially when an index query returns many fragmented ranges.

Implementation

Add RowRangeIndex.fromBitmap to build the index directly from ordered bitmap ranges, while retaining the existing sort-and-merge path for mixed-sign values.

Tests

Add an equivalence test comparing the new and existing construction paths across empty, singleton, sparse, contiguous, boundary, and mixed-sign bitmaps.

@jerry-024
jerry-024 marked this pull request as draft September 16, 2026 09:01
@jerry-024 jerry-024 changed the title [core] Avoid redundant sorting when building row range indexes [core] Build row range indexes directly from bitmap ranges Sep 16, 2026
@jerry-024
jerry-024 force-pushed the optimize-row-range-from-bitmap branch from 6939b71 to 501f75a Compare September 20, 2026 07:41
@jerry-024 jerry-024 closed this Sep 20, 2026
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