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

internal/keyspan: support interleaving end keys #3536

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Apr 22, 2024

Adapt the InterleavingIter to support a mode that interleaves span end keys.

Informs #2863.

@jbowens jbowens requested review from a team and itsbilal April 22, 2024 15:56
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @itsbilal and @jbowens)


internal/keyspan/interleaving_iter.go line 89 at r2 (raw file):

// InterleavedIter does not interleave synthetic markers for spans that do not
// contain any keys.
//

Do we need to add to this description to mention the new mode?

Instead of copying each field of InterleavingIterOpts onto the
InterleavingIter, add the entire struct as a field of the InterleavingIter.
Adapt the InterleavingIter to support a mode that interleaves span end keys.

Informs cockroachdb#2863.
Copy link
Collaborator Author

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

TFTR!

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @itsbilal and @RaduBerinde)


internal/keyspan/interleaving_iter.go line 89 at r2 (raw file):

Previously, RaduBerinde wrote…

Do we need to add to this description to mention the new mode?

Good call, done.

@jbowens jbowens merged commit 7704193 into cockroachdb:master Apr 22, 2024
11 checks passed
@jbowens jbowens deleted the interleave-end branch April 22, 2024 18:47
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.

None yet

3 participants