Skip to content

stats: make recent fix more conservative#88300

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:improve-stats-fix
Sep 20, 2022
Merged

stats: make recent fix more conservative#88300
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:improve-stats-fix

Conversation

@yuzefovich
Copy link
Copy Markdown
Member

We recently merged a fix for histograms of INT2 and INT4 types to not exceed their range, and we used an exact equality against the boundary values when determining whether "outer" buckets are needed. This commit makes that logic more bullet-proof by using an inequality. The sampled values that exceed the supported ranges for the types should not really happen, but let's be conservative.

Release note: None

We recently merged a fix for histograms of INT2 and INT4 types to not
exceed their range, and we used an exact equality against the boundary
values when determining whether "outer" buckets are needed. This commit
makes that logic more bullet-proof by using an inequality. The sampled
values that exceed the supported ranges for the types should not really
happen, but let's be conservative.

Release note: None
@yuzefovich yuzefovich requested review from a team, michae2 and rytaft September 20, 2022 21:03
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @michae2)

Copy link
Copy Markdown
Collaborator

@michae2 michae2 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich
Copy link
Copy Markdown
Member Author

TFTRs!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 20, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 20, 2022

Build succeeded:

@craig craig bot merged commit 77c412d into cockroachdb:master Sep 20, 2022
@yuzefovich yuzefovich deleted the improve-stats-fix branch September 20, 2022 23:07
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.

4 participants