Repository navigation
fix(agg): preserve decimal variance precision - #29170
Merged
Merged
Conversation
XuPeng-SH
requested review from
LeftHandCold,
aptend and
aunjgr
as code owners
September 20, 2026 16:51
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
force-pushed
the
codex/issue-28852-temporal-variance
branch
from
September 20, 2026 21:36
8385a05 to
a647058
Compare
XuPeng-SH
commented
Sep 20, 2026
XuPeng-SH
left a comment
Contributor
Author
There was a problem hiding this comment.
PASS — completed a deep review using GPT-6 Astra / medium of 6e7f923 against b2f178d.
No P0/P1/P2 blockers found. Reviewed decimal conversion boundaries, VAR/STDDEV state and merge/flush paths, error cleanup, and regression oracles. Verified exact-head CI and normal-comparison BVT results: 14/14 temporal, 242/242 VAR_POP, and 141/141 VAR_SAMP. Coverage was not used as a gate.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #28852
What this PR does / why we need it:
Decimal variance and standard-deviation executors accumulate in
float64. Their previous final conversion exposed the binary ULP tail as decimal digits, so the issue's DATETIME/TIMESTAMPVAR_POPresult became680202686800.666624instead of MySQL-compatible680202686800.666600.This change converts finite aggregate results through their shortest round-trip decimal representation before scaling to Decimal128. It is deliberately limited to the Decimal variance/stddev finalizer: planner coercion, recurrence, distributed state/wire format, global casts, and float-returning aggregates are unchanged.
Validation includes:
go vet, scoped golangci-lint, and build;The branch includes main through
b2f178defd(#29175 cosine regression correction). Current remote SCA/full CI is pending; the earlier revision passed scoped static checks. The follow-up changes only BVT error expectations and retains all executable SQL and successful-result oracles.GPT-6 Astra medium completed both design review and final overall review; final verdict: PASS with no material findings.