You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regression and extended verification for #28789 (2026-09-15)
Verification Environment
MatrixOne source: latest local origin/main at 2ea4ec2e6ef4b20321a235ef416228506813e39b — revert: restore single-runner race UT execution (#28887).
Runtime binary was rebuilt from that commit, restarted, and reported Git commit ID: 2ea4ec2e6e.
Topology: 2 CN / 1 TN / 1 Log service / Proxy.
Endpoint connectivity was confirmed for Proxy 127.0.0.1:6001, CN1 127.0.0.1:16001, and CN2 127.0.0.1:16002.
Client protocol: MySQL text protocol through the mysql client. The original SQL and necessary extensions were executed independently and concurrently through all three endpoints.
What Was Covered
OK — Original DECIMAL(65,0) % DECIMAL(65,30) reproduction returned 0.000000000000000000000000000004 through Proxy 6001, CN1 16001, and CN2 16002.
OK — Scale boundaries returned 0.00000000006 at scale=11 and 0.000000000004 at the formerly failing scale=12.
OK — Reverse operand order and dividend-sign controls preserved exact remainder and sign semantics.
OK — Decimal/integer compatibility control 7 % DECIMAL(10,1) returned 1.0.
OK — Table expression, filter, GROUP BY, view, CTAS, and SQL PREPARE / EXECUTE paths returned the expected remainder.
OK — Non-strict-session modulo-by-zero control returned NULL consistently on all three endpoints.
OK — The three endpoint validations ran in parallel with isolated client sessions and separate test databases.
Not covered — A local MySQL 8.3.0 instance was not available for a fresh side-by-side execution; the expected original remainder is the issue’s documented MySQL value and follows exact decimal arithmetic.
Not covered — Large-volume, spill, concurrency-pressure, skew, and network-scale tests are unrelated to this scalar precision/scale-alignment defect.
Findings
The associated fix is MatrixOne PR #28804, merge commit 67a9a4b130388956971888a67fc626784deade48 (fix(decimal): avoid DECIMAL256 MOD/DIV scale overflow). It is an ancestor of the verified origin/main.
The fix computes the exact DECIMAL256 MOD remainder without materializing an overflowing scale-aligned coefficient, preserving valid result scale and sign semantics.
MOTR source commit: 2ca76d62d78350bfed1f6d4fee6db7baa122c3e7 on test/issue-28789-decimal-mod-scale. It was cherry-picked as b2b2f6d into daily PR matrixorigin/motr#177.
Final Conclusion
Fixed. The original representable DECIMAL modulo result is returned correctly through Proxy 6001, CN1 16001, and CN2 16002.
Large-data regression is not required: this issue depends on scalar operand precision and scale difference, not on row count, block/batch boundaries, memory/spill, concurrency, data skew, network transfer, or cluster resource scale.
Activity
fix(decimal): avoid DECIMAL256 MOD/DIV scale overflow (#28804)
slyunnn commentedon Sep 15, 2026
Regression and extended verification for #28789 (2026-09-15)
Verification Environment
origin/mainat2ea4ec2e6ef4b20321a235ef416228506813e39b—revert: restore single-runner race UT execution (#28887).Git commit ID: 2ea4ec2e6e.2 CN / 1 TN / 1 Log service / Proxy.127.0.0.1:6001, CN1127.0.0.1:16001, and CN2127.0.0.1:16002.mysqlclient. The original SQL and necessary extensions were executed independently and concurrently through all three endpoints.What Was Covered
DECIMAL(65,0) % DECIMAL(65,30)reproduction returned0.000000000000000000000000000004through Proxy6001, CN116001, and CN216002.0.00000000006atscale=11and0.000000000004at the formerly failingscale=12.7 % DECIMAL(10,1)returned1.0.GROUP BY, view, CTAS, and SQLPREPARE/EXECUTEpaths returned the expected remainder.NULLconsistently on all three endpoints.8.3.0instance was not available for a fresh side-by-side execution; the expected original remainder is the issue’s documented MySQL value and follows exact decimal arithmetic.Findings
The associated fix is MatrixOne PR #28804, merge commit
67a9a4b130388956971888a67fc626784deade48(fix(decimal): avoid DECIMAL256 MOD/DIV scale overflow). It is an ancestor of the verifiedorigin/main.The fix computes the exact
DECIMAL256 MODremainder without materializing an overflowing scale-aligned coefficient, preserving valid result scale and sign semantics.MOTR / BVT Coverage
Added and recorded/replayed:
suites/14_issue_regression/t/issue_28789_decimal_mod_scale.testsuites/14_issue_regression/r/issue_28789_decimal_mod_scale.resultMOTR source commit:
2ca76d62d78350bfed1f6d4fee6db7baa122c3e7ontest/issue-28789-decimal-mod-scale. It was cherry-picked asb2b2f6dinto daily PR matrixorigin/motr#177.Final Conclusion
Fixed. The original representable
DECIMALmodulo result is returned correctly through Proxy6001, CN116001, and CN216002.Large-data regression is not required: this issue depends on scalar operand precision and scale difference, not on row count, block/batch boundaries, memory/spill, concurrency, data skew, network transfer, or cluster resource scale.
fix(decimal): avoid DECIMAL256 MOD/DIV scale overflow (matrixorigin#2…
fix(decimal): avoid DECIMAL256 MOD/DIV scale overflow (matrixorigin#2…
fix(decimal): avoid DECIMAL256 MOD/DIV scale overflow (matrixorigin#2…