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

cli: remove redundant hex_ columns in debug.zip output #112033

Merged
merged 1 commit into from Oct 10, 2023

Conversation

cucaroach
Copy link
Contributor

In #80398 we fixed the CLI to respect bytea_output
session variable and properly output BYTES columns in \xDEADBEEF format.
Now we don't need the extra hex_ columns. This makes debug.zips smaller
and quicker to create (jobs payloads can get big and so can descriptors
for large tables).

In order not to break cockroach debug decode-proto extend it to look
for and remove the \x prefix when attempting to decode hex.

Fixes: #112032
Epic: none
Release note (cli change): debug zip's no longer include redundant hex_
columns for system table BYTES columns.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@cucaroach cucaroach changed the title cli: Remove redundant hex_ columns in debug.zip output cli: remove redundant hex_ columns in debug.zip output Oct 9, 2023
@cucaroach cucaroach force-pushed the no_hex branch 2 times, most recently from b527a6b to 8a59b87 Compare October 9, 2023 14:49
@cucaroach cucaroach marked this pull request as ready for review October 9, 2023 17:26
@cucaroach cucaroach requested review from a team as code owners October 9, 2023 17:26
@cucaroach cucaroach requested review from dhartunian and removed request for a team October 9, 2023 17:26
Copy link
Collaborator

@dhartunian dhartunian left a comment

Choose a reason for hiding this comment

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

:lgtm: thanks!

Reviewed 2 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@cucaroach
Copy link
Contributor Author

bors r+

In cockroachdb#80398 we fixed the CLI to respect bytea_output
session variable and properly output BYTES columns in \xDEADBEEF format.
Now we don't need the extra hex_ columns. This makes debug.zips smaller
and quicker to create (jobs payloads can get big and so can descriptors
for large tables).

In order not to break cockroach debug decode-proto extend it to look
for and remove the \x prefix when attempting to decode hex.

Fixes: cockroachdb#112032
Epic: none
Release note (cli change): debug zip's no longer include redundant hex_
columns for system table BYTES columns.
@rickystewart
Copy link
Collaborator

bors r-

@rickystewart
Copy link
Collaborator

bors r+

@craig craig bot merged commit d1981cd into cockroachdb:master Oct 10, 2023
8 checks passed
@craig
Copy link
Contributor

craig bot commented Oct 10, 2023

Build succeeded:

@dt
Copy link
Member

dt commented Oct 10, 2023

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 10, 2023

Already running a review

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.

cli: debug.zip has extra unnecessary hex_ columns
5 participants