-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
stats: add a histogram version number #69944
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 28 of 28 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde and @rytaft)
pkg/sql/stats/histogram.go, line 39 at r1 (raw file):
// ATTENTION: When updating this field, add a brief description of what // changed to the version history below. const HistVersion HistogramVersion = 1
Does this need to be exported?
pkg/sql/stats/histogram.go, line 52 at r1 (raw file):
- Version: 0 - Initial histogram implementation.
Should we note here that Version 0 histograms won't have a version field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TFTR!
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @mgartner and @RaduBerinde)
pkg/sql/stats/histogram.go, line 39 at r1 (raw file):
Previously, mgartner (Marcus Gartner) wrote…
Does this need to be exported?
Nope! Done.
pkg/sql/stats/histogram.go, line 52 at r1 (raw file):
Previously, mgartner (Marcus Gartner) wrote…
Should we note here that Version 0 histograms won't have a version field?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @mgartner and @rytaft)
pkg/sql/stats/histogram.go, line 54 at r2 (raw file):
- Version: 0 - Initial histogram implementation. The version field is omitted on Version 0
[nit] I would say histogram implementations up to and including 21.1.x.
This commit adds a histogram version number to the HistogramData proto. This will allow us to identify what logic was used to construct a particular histogram and possibly debug future issues. Release note: None Release justification: Low risk, high benefit change to existing functionality.
78191f2
to
2939e1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @mgartner)
pkg/sql/stats/histogram.go, line 54 at r2 (raw file):
Previously, RaduBerinde wrote…
[nit] I would say histogram implementations up to and including 21.1.x.
Done.
Build succeeded: |
This commit adds a histogram version number to the
HistogramData
proto. This will allow us to identify what logic was used to construct
a particular histogram and possibly debug future issues.
Release note: None
Release justification: Low risk, high benefit change to existing
functionality.