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

db: support range keys in external files #3737

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

RaduBerinde
Copy link
Member

keyspan: modernize the LevelIter test

This change improves the data-driven LevelIter test and simplfies the
code. Instead of specifying point keys, we allow extending either
point key or range key bounds directly.

keyspan: add LevelIter tests with loose range key spans

db: support range keys in external files

We now support range keys in external files, and we support synthetic
prefix for range keys. We don't yet support synthetic suffix.

Informs #3287

@RaduBerinde RaduBerinde requested a review from itsbilal July 8, 2024 17:49
@RaduBerinde RaduBerinde requested a review from a team as a code owner July 8, 2024 17:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@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.

:lgtm:

Reviewed 3 of 3 files at r1, 1 of 1 files at r2, 4 of 4 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @itsbilal)

Copy link
Member

@itsbilal itsbilal left a comment

Choose a reason for hiding this comment

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

LGTM

.

ingest-external
points-and-ranges.sst synthetic-prefix=x_ bounds=(x_a,x_d) has-range-keys
Copy link
Member

Choose a reason for hiding this comment

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

Let's try adding a case where the last key is the rangedel's end key, and yet we're at a loose bound? So something like [a, c2) for the vsst bounds.

This change improves the data-driven LevelIter test and simplfies the
code. Instead of specifying point keys, we allow extending either
point key or range key bounds directly.
We now support range keys in external files, and we support synthetic
prefix for range keys. We don't yet support synthetic suffix.

Informs cockroachdb#3287
Copy link
Member Author

@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.

TFTRs!

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @itsbilal)


testdata/ingest_external line 1033 at r3 (raw file):

Previously, itsbilal (Bilal Akhtar) wrote…

Let's try adding a case where the last key is the rangedel's end key, and yet we're at a loose bound? So something like [a, c2) for the vsst bounds.

Done.

@RaduBerinde
Copy link
Member Author

TFTRs!

@RaduBerinde RaduBerinde merged commit b6c49f4 into cockroachdb:master Jul 15, 2024
11 checks passed
@RaduBerinde RaduBerinde deleted the range-keys-external branch July 15, 2024 20:17
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

4 participants