Repository navigation
[Bug]: preserve DECIMAL division range and rounding - #28814
Conversation
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? |
54cc371 to
49213df
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
GPT-6 medium deep review at current head 4fda7ced7a1fb1af55de7e00530a93928d1cdb4e: no verified blocking finding.
The D128 quotient/remainder implementation corrects the normalized large-divisor estimate before forming the remainder and uses the correct half-up threshold for odd and even divisors. The D256-result fallback preserves wide quotients and signed MinInt128 magnitudes while keeping declared D128 overflow behavior. Vector/vector, scalar/vector, and vector/scalar paths retain their fast-inline result handling; zero-divisor/null and overflow behavior match the surrounding contracts.
Racing-UT review: no new cluster/process fixture, wait, retry, repeated workload, or unbounded loop was added; the arithmetic corrections are bounded. Exact-head CI run 34768824045 passed, with the function package selected in the race-enabled UT stage. The existing PESSIMISTIC BVT executed dtype/decimal_256.test 16/16 in 0.127s. No material racing-UT time increase is indicated; a full-suite before/after duration comparison was not measured.
Fixes matrixorigin#28774 and matrixorigin#28775. - Preserve full Decimal256 quotients when the D128 fast path is used for eligible inputs. - Correct D128 quotient/remainder estimation and half-up rounding for large divisors. - Fall back to D256 when a D128 absolute operand is not representable as positive D128, including MinInt128. - Add focused UT and distributed regressions for wide results, rounding, and signed minimum boundaries. Validation: gofmt and git diff checks pass. Local CGo UT and distributed BVT were not run because this worktree lacks cgo/libmo.so and required thirdparties; CI validation is required.
Fixes matrixorigin#28774 and matrixorigin#28775. - Preserve full Decimal256 quotients when the D128 fast path is used for eligible inputs. - Correct D128 quotient/remainder estimation and half-up rounding for large divisors. - Fall back to D256 when a D128 absolute operand is not representable as positive D128, including MinInt128. - Add focused UT and distributed regressions for wide results, rounding, and signed minimum boundaries. Validation: gofmt and git diff checks pass. Local CGo UT and distributed BVT were not run because this worktree lacks cgo/libmo.so and required thirdparties; CI validation is required.
Fixes matrixorigin#28774 and matrixorigin#28775. - Preserve full Decimal256 quotients when the D128 fast path is used for eligible inputs. - Correct D128 quotient/remainder estimation and half-up rounding for large divisors. - Fall back to D256 when a D128 absolute operand is not representable as positive D128, including MinInt128. - Add focused UT and distributed regressions for wide results, rounding, and signed minimum boundaries. Validation: gofmt and git diff checks pass. Local CGo UT and distributed BVT were not run because this worktree lacks cgo/libmo.so and required thirdparties; CI validation is required.
Fixes #28774 and #28775.
Validation: gofmt and git diff checks pass. Local CGo UT and distributed BVT were not run because this worktree lacks cgo/libmo.so and required thirdparties; CI validation is required.