Repository navigation
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? |
|
mo-bot review · Commit: Assessment: approve Reviewed the complete six-file delta and affected PREPARE, EXECUTE and wire-metadata paths. Numeric inference reuses the existing resolver, remains provisional, and preserves runtime parameter ownership. No actionable defects remain within the stated scope. Model: Session: Validation:
Limitations:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 979a09fd12e1b7ec1909cfd73f72abddf986b558
Assessment: approve
Reviewed the complete six-file delta and affected PREPARE, EXECUTE and wire-metadata paths. Numeric inference reuses the existing resolver, remains provisional, and preserves runtime parameter ownership. No actionable defects remain within the stated scope.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0
Validation:
-
Verified the frozen HEAD, clean checkout and passing git diff --check.
-
Traced numeric-peer inference, NULL/string/binary boundaries, unsupported-union fallback, provisional-cast removal and immutable template specialization.
-
Reviewed planner regressions, binary-protocol metadata assertions and the JDBC probe's value, metadata, reuse, timeout and cleanup checks.
-
Reused exact-head successful UT, SCA, build and BVT CI evidence, plus author-reported owning-package tests and baseline-failing/fixed-passing Connector/J 8.4.0 validation.
-
Recorded the change map and evidence in review-notes.json.
Limitations:
-
No local runtime tests were repeated; the JDBC execution evidence is author-reported.
-
The linked issue body was not supplied; requirements were assessed from the frozen PR description and regression artifacts.
-
MySQL precision/scale parity and propagation through nested marker-only expressions remain outside this focused fix.
Merge Queue Status
This pull request spent 1 hour 6 minutes 54 seconds in the queue, with no time running CI. ReasonPull request #30035 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. Waiting for any of
All conditions
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:
The issue remains open for reporter verification after merge.
What this PR does / why we need it:
A fresh server-side prepared
SELECT COALESCE(?, CAST(0 AS DECIMAL(20,6)))reports VARCHAR to JDBC before execution, then DECIMAL after execution. The unresolved parameter's TEXT transport type selects the string COALESCE overload during PREPARE.Infer the initial numeric result domain from all concrete numeric COALESCE operands through the existing common-type resolver. Wrap direct unresolved markers in provisional implicit casts so PREPARE exposes numeric metadata while EXECUTE continues to bind actual parameter sources. Preserve concrete string/binary operands, all-unknown operands, explicit casts, and existing runtime conversion behavior; fall back to ordinary binding when the numeric peer union is unsupported.
Validation on macOS arm64, Go 1.27.1, CPU native build:
pkg/sql/planandpkg/frontendtests pass with the repository CGo wrapper; incremental gofmt, vet, and repository-pinned lint pass.test/manual/issue29977.The added work is bounded by the argument count during PREPARE, with no per-row work or new persistent/session state. MySQL precision/scale parity and propagation through nested marker-only expressions remain outside this focused fix. CI is pending.