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

opt: fix string with spaces in SHOW STATISTICS USING JSON #48514

Merged
merged 1 commit into from
May 7, 2020

Conversation

RaduBerinde
Copy link
Member

In the SHOW STATISTICS USING JSON result strings with spaces have extra single
quotes, which become part of the actual string when injecting the stats.

This change fixes this and adds a "roundtripping" test.

Fixes #48500.

Release note (bug fix): SHOW STATISTICS USING JSON contains incorrect single
quotes for strings with spaces inside histograms.

In the `SHOW STATISTICS USING JSON` result strings with spaces have extra single
quotes, which become part of the actual string when injecting the stats.

This change fixes this and adds a "roundtripping" test.

Fixes cockroachdb#48500.

Release note (bug fix): SHOW STATISTICS USING JSON contains incorrect single
quotes for strings with spaces inside histograms.
@RaduBerinde RaduBerinde requested a review from rytaft May 6, 2020 22:25
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rytaft rytaft 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 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented May 7, 2020

Build failed

@RaduBerinde
Copy link
Member Author

"no space left on device"

bors r+

@craig
Copy link
Contributor

craig bot commented May 7, 2020

Build succeeded

@craig craig bot merged commit 610e626 into cockroachdb:master May 7, 2020
@RaduBerinde RaduBerinde deleted the fix-show-stats-strings branch May 8, 2020 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opt: SHOW STATISTICS USING JSON results in extra quotes
3 participants