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
sql: Record user-provided value to event log when a setting is changed #17866
Conversation
Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. pkg/sql/parser/constant.go, line 356 at r1 (raw file):
does this suggest we want a test that hits this? Comments from Reviewable |
Rather than using the encoded version, which for state-machine settings (like the cluster version) can be a protocol buffer. To make this work, I needed parser.StrVal.Format to respect the provided format strings. To my untrained eye this looked like a bug, but there may be a reason for it that I'm not aware of. Fixes cockroachdb#17854
9752ee6
to
c8c175e
Compare
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion. pkg/sql/parser/constant.go, line 356 at r1 (raw file): Previously, dt (David Taylor) wrote…
If it's actually the intended behavior, yeah. Done. Although it'd be nice to hear from one other person (@knz? @nvanbenschoten?) that this wasn't intentionally done this way. Comments from Reviewable |
Reviewed 2 of 2 files at r1, 1 of 1 files at r2. pkg/sql/parser/constant.go, line 356 at r1 (raw file): Previously, a-robinson (Alex Robinson) wrote…
I don't remember actually. What other things were changed that were using this code path when this was introduced the first time? Comments from Reviewable |
also nit: we usually do not capitalize the first line of commit messages |
Wow, I've been doing that for a year and never noticed. I'm not alone in doing it, but we're definitely outnumbered. I'll try to switch over in the future. Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. pkg/sql/parser/constant.go, line 356 at r1 (raw file): Previously, knz (kena) wrote…
It traces all the way back to when Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. pkg/sql/parser/constant.go, line 356 at r1 (raw file): Previously, a-robinson (Alex Robinson) wrote…
Yeah, that must have just been missed when the Comments from Reviewable |
While staying as far away from a bikeshed as possible, can I ask why we usually don't capitalize the first line of commit messages? Is it an arbitrary convention for the sake of standardization (which I'm all for)? |
So my overall approach is like this:
Also at a high level since we also have this habit to not end commit titles with a period (I actually disagree with this, but we've been doing that reliably) I never saw them as sentences really and thus didn't see the point of an initial capital. |
Ok, thanks for the explanation. |
Rather than using the encoded version, which for state-machine settings
(like the cluster version) can be a protocol buffer.
To make this work, I needed parser.StrVal.Format to respect the provided
format strings. To my untrained eye this looked like a bug, but there
may be a reason for it that I'm not aware of.
Fixes #17854
I hope one of you can correct me on the
StrVal.Format
change if there really is a reason for it not to respect formatting flags.