Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block,colblk: tighten iterator semantics #3989

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Oct 1, 2024

block,colblk: tighten index iterator semantics

This commit more tightly defines the IndexBlockIterator semantics around behavior after a call to Invalidate and around positioning operations called after exhaustion. These semantics match the rowblk implementation and are currently required by the sstable iterator.

In the future, we may consider alternative semantics through updating the sstable iterator.

block,colblk: tighten data block iterator semantics

Define the semantics of calling a positioning method on an invalidated
DataBlockIterator. The sstable iterator currently depends on these semantics.

This commit more tightly defines the IndexBlockIterator semantics around
behavior after a call to Invalidate and around positioning operations called
after exhaustion. These semantics match the rowblk implementation and are
currently required by the sstable iterator.

In the future, we may consider alternative semantics through updating the
sstable iterator.
@jbowens jbowens requested a review from a team as a code owner October 1, 2024 20:41
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jbowens jbowens requested a review from itsbilal October 1, 2024 20:55
@jbowens jbowens changed the title block,colblk: tighten index iterator semantics block,colblk: tighten iterator semantics Oct 1, 2024
Define the semantics of calling a positioning method on an invalidated
DataBlockIterator. The sstable iterator currently depends on these semantics.
@jbowens
Copy link
Collaborator Author

jbowens commented Oct 1, 2024

TFTR!

@jbowens jbowens merged commit 2bb0f82 into cockroachdb:master Oct 1, 2024
12 checks passed
@jbowens jbowens deleted the iter-semantics branch October 1, 2024 23:32
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