Skip to content

Validate row-index selections#8574

Open
gatesn wants to merge 5 commits into
developfrom
ngates/selection-index-sortedness
Open

Validate row-index selections#8574
gatesn wants to merge 5 commits into
developfrom
ngates/selection-index-sortedness

Conversation

@gatesn

@gatesn gatesn commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Rational for this change

We binary search the row selections and therefore panic if they are out of order. Therefore we should validate them on-construction to be sorted

What changes are included in this PR?

Include/ExcludeByIndex has try_new constructors.

An alternative would be to have a SortedBuffer wrapper type perhaps?

What APIs are changed? Are there any user-facing changes?

Include/ExcludeByIndex

@gatesn
gatesn requested a review from a team June 24, 2026 15:05
@gatesn
gatesn marked this pull request as draft June 24, 2026 15:06
@codspeed-hq

codspeed-hq Bot commented Jun 24, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 1849 untouched benchmarks
⏩ 46 skipped benchmarks1


Comparing ngates/selection-index-sortedness (8a893e7) with develop (2f8c569)

Open in CodSpeed

Footnotes

  1. 46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@gatesn gatesn added the changelog/fix A bug fix label Jun 24, 2026
@gatesn
gatesn marked this pull request as ready for review June 24, 2026 15:17
@gatesn
gatesn enabled auto-merge (squash) June 24, 2026 15:28
Comment thread vortex-jni/src/scan.rs
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been marked as stale because it has been open for 14 days with no activity. Please comment or remove the stale label if you wish to keep it active, otherwise it will be closed in 7 days

@github-actions github-actions Bot added the stale This PR is stale and will be auto-closed soon label Jul 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions Bot closed this Jul 24, 2026
auto-merge was automatically disabled July 24, 2026 04:42

Pull request was closed

@robert3005 robert3005 reopened this Jul 24, 2026
gatesn and others added 4 commits July 24, 2026 23:04
Signed-off-by: "Nicholas Gates" <nick@nickgates.com>
Signed-off-by: "Nicholas Gates" <nick@nickgates.com>
Signed-off-by: "Nicholas Gates" <nick@nickgates.com>
Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005
robert3005 force-pushed the ngates/selection-index-sortedness branch from a2e44d2 to b17f70b Compare July 24, 2026 22:11
Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005 robert3005 removed the stale This PR is stale and will be auto-closed soon label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants