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

tool: print sstable format in properties #4128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

itsbilal
Copy link
Member

@itsbilal itsbilal commented Nov 1, 2024

Currently, there's no pebble command-line tool that prints an sstable's format. This change prints the sstable's format in the sstable properties command.

@itsbilal itsbilal requested a review from a team as a code owner November 1, 2024 13:54
@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 2 files reviewed, 1 unresolved discussion (waiting on @aadityasondhi and @itsbilal)


tool/sstable.go line 313 at r1 (raw file):

		tw := tabwriter.NewWriter(stdout, 2, 1, 2, ' ', 0)
		fmt.Fprintf(tw, "format\t\n")

[nit] Why a tab before newline? Also, can't we just do "format\t%s\n", format.String()?

Currently, there's no pebble command-line tool that prints an
sstable's format. This change prints the sstable's format in
the sstable properties command.
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