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

sstable,colblk: minor bug fixes #3962

Merged
merged 3 commits into from
Sep 25, 2024
Merged

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Sep 25, 2024

colblk: define behavior of KeyWriter.ComparePrev with no previous

Define the behavior of KeyWriter.ComparePrev when called on a KeyWriter that
has no previously-written key.

sstable: set IndexPartitions property in columnar sstable writer

Populate the IndexPartitions table-level property in the the columnar sstable
writer.

@jbowens jbowens requested a review from a team as a code owner September 25, 2024 19:16
@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:

Reviewed 2 of 2 files at r1, 2 of 2 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @aadityasondhi and @jbowens)


sstable/colblk/data_block.go line 53 at r1 (raw file):

	//
	// If no key has been written yet, ComparePrev returns a KeyComparison with
	// only PrefixLen set.

[nit] Feels like UserKeyComparison should be 1 not 0 in this case

Define the behavior of KeyWriter.ComparePrev when called on a KeyWriter that
has no previously-written key.
Populate the IndexPartitions table-level property in the the columnar sstable
writer.
Previously, the test4bSuffixComparer test comparer wasn't setting
CompareSuffixes. Update the comparer to simply copy the default comparer
override Split and Name.
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!

CI hit a metamorphic test failure that reproduces on master. Filed #3963

Reviewable status: 0 of 6 files reviewed, all discussions resolved (waiting on @aadityasondhi and @RaduBerinde)


sstable/colblk/data_block.go line 53 at r1 (raw file):

Previously, RaduBerinde wrote…

[nit] Feels like UserKeyComparison should be 1 not 0 in this case

Done

@jbowens jbowens merged commit c0fa4a9 into cockroachdb:master Sep 25, 2024
11 of 12 checks passed
@jbowens jbowens deleted the bugfixes branch September 25, 2024 20:21
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