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,sql/sem/builtins: emit_defaults to false for decode-proto, pb_to_json #69185

Merged

Conversation

ajwerner
Copy link
Contributor

When cockroach debug decode-proto and crdb_internal.pb_to_json were first
added, they emitted the default values in the produced json. This turns out to
not be desirable; setting emit defaults to false produces json which round-
trips back to the same proto.

Release note (cli change): cockroach debug decode-proto now does not emit
default values by default.

Release note (sql change): crdb_internal.pb_to_json now does not emit
default values by default.

@ajwerner ajwerner requested review from dt and miretskiy August 20, 2021 03:49
@ajwerner ajwerner requested review from a team as code owners August 20, 2021 03:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

…_to_json

When `cockroach debug decode-proto` and `crdb_internal.pb_to_json` were first
added, they emitted the default values in the produced json. This turns out to
not be desirable; setting emit defaults to false produces json which round-
trips back to the same proto.

Release note (cli change): `cockroach debug decode-proto` now does not emit
default values by default.

Release note (sql change): `crdb_internal.pb_to_json` now does not emit
default values by default.
@ajwerner ajwerner force-pushed the ajwerner/decode-proto-emit-defaults-false branch from 52ee4f4 to 2753a47 Compare August 20, 2021 15:38
@ajwerner ajwerner requested a review from a team August 20, 2021 15:38
@ajwerner
Copy link
Contributor Author

bors r=dt

@craig
Copy link
Contributor

craig bot commented Aug 20, 2021

Build succeeded:

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

3 participants