Add exact typed decimal aggregate states #44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/typed-decimal-aggregates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SUM(DECIMAL)andAVG(DECIMAL)DECIMAL(38,input_scale)from decimal SUM while ordinary AVG finalizes once to DOUBLEdecimal_average(DECIMAL)aggregate, preserving input width/scale with signed half-to-even roundingThis lands parity-ledger reproductions R08 and R09 as a typed decimal aggregate slice. The broader aggregate family, parallel state combination, and spill-aware integration remain explicitly outstanding.
The 0.21.0 version is ordered after open PR #40 (#40), PR #41 (#41), PR #42 (#42), and PR #43 (#43).
Pinned-source evidence
117e1a46be1c903c5a36ee3c881c125597f93c60decimal_avg.cppdefines exact scaled-integer sum/count state, signed HUGEINT overflow, input-type-preserving output, and half-to-even roundingDECIMAL(38,scale)Verification
.ssfiles pass delimiter balance checksjerboa_verify; only established lexical pre-scan warnings remainmake buildmake unitmake verify(653 local SQLLogic checks and 62 upstream subset checks; stress, native analysis, and docs all pass)make binarymake binary-smokegit diff --checkReview notes
aggregate input has unexpected selectionfailure for all aggregate kinds.