Skip to content

Conversation

@jycor
Copy link
Contributor

@jycor jycor commented Nov 17, 2023

A previous fix involved updating the MaxUpperBound in the RangeTree when traversing the right node, turns out we need to do that when creating a new node as well.

To better catch overlapping range expressions, we now verify that the resulting ranges do not overlap (an operation which isn't too expensive). This fixes some plans from an index refactor.

Additionally, this also fixes a skipped test where the ranges were not overlapping but different than the brute force approach.

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

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

LGTM, I've been worrying about the correctness of these for awhile and I think the validation will help prevent a lot of silent bugs going forward.

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