Repository navigation
fix(plan): derive MOD decimal precision from original operands - #30170
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? |
4da8322 to
459b486
Compare
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 459b486985ffe5e1d30066d46340104635b95d5d
Assessment: approve
Reviewed the complete seven-file delta and affected consumers. The shared metadata helper restores original-operand precision while preserving execution casts and kernels. Design, cleanup, compatibility and test coverage are sound; added work is bounded to binding. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-8e48-7622-ad17-b605f08450ce · slot 1 · generation 0
Validation:
-
All six new regression tests passed with -count=1 through the supplied isolated executor across function, plan and sqlintegration packages. SQL coverage includes CTAS/view schemas, direct/materialized/prepared metadata, CASE/COALESCE, signed values, NULL and zero divisors.
-
Original-production overlay control failed for the intended precision mismatches; identical assertions passed on the candidate.
-
Isolation preflight passed. Repository-owned native build succeeded; 192 native/module inputs were matched to the frozen checkout. Source remained unchanged and git diff --check passed.
-
Commands, source fingerprints, terminal exits and retained logs were reconciled in /home/xupeng/.local/state/mo-bot/jobs/8ac62e18559d245a600f443d/attempt-1/evidence-audit.json. Candidate receipt: checks/1792011129936154606-4.json; baseline-control receipt: checks/1792011180721961750-4.json.
-
Reused the supplied exact-head successful Ubuntu UT, arm64 SCA, coverage and proxy/multi-CN BVT statuses for broader coverage.
Limitations:
-
Broader CI raw logs were not supplied; full suites were not repeated locally.
-
Issue #30157's standalone body was absent; its contract was assessed from the frozen PR description and regression examples.
-
No performance benchmark was run; no per-row execution change or material regression risk was identified.
Merge Queue Status
This pull request spent 59 minutes 15 seconds in the queue, with no time running CI. ReasonPull request #30170 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
Derives DECIMAL MOD /
%precision and scale from the original exact operands, matching MySQL.DECIMAL(10,3) MOD INTnow exposesDECIMAL(10,3);DECIMAL(18,3) MOD BIGINTexposes precision 19, or 20 for unsigned BIGINT. The corrected metadata reaches CTAS, views, CASE and COALESCE.Function resolution and numeric inference retain original operand domains. The binder refines literal precision only for result metadata. Execution storage types, implicit cast targets and remainder kernels stay unchanged. Coverage includes integer widths and signedness, MEDIUMINT, both operand orders, literals and explicit casts, decimal controls and existing temporal/string/NULL behavior. This changes newly derived metadata; it does not migrate existing table schemas.
Validation
pkg/sql/plan/functionandpkg/sql/plansuites pass.go vet, repository-configured golangci-lint andgit diff --checkpass.The change adds bounded metadata work at binding time and no per-row execution work. Please have the reporter verify #30157 after merge.