Repository navigation
fix(sql): align WEEK and DAYOFYEAR result type contracts with MySQL - #30101
mergify[bot] merged 3 commits into
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? |
92e375b to
2c65782
Compare
2c65782 to
b3669cf
Compare
|
mo-bot review · Commit: Assessment: approve Reviewed the complete 25-file delta. Signed INT execution and CTAS storage, eligible direct BIGINT metadata, legacy serialized execution, and v112 compatibility gates satisfy the declared scope. No actionable findings remain. Model: Session: Validation:
Limitations:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: b3669cfa4afa9236290290dd863cf5a5eaf04a94
Assessment: approve
Reviewed the complete 25-file delta. Signed INT execution and CTAS storage, eligible direct BIGINT metadata, legacy serialized execution, and v112 compatibility gates satisfy the declared scope. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0
Validation:
-
Verified frozen head, unchanged source, clean diff check, matching native-build inputs/artifacts, and successful isolation preflight.
-
19 focused tests passed across six packages, covering result types, NULL/masked rows, session defaults, legacy/current serialized execution, protocol placement/send/receive, and persisted-expression admission.
-
Live SQL integration passed all four scenarios: column metadata, interpolated queries, server-prepared valid/NULL/valid reuse, and signed INT CTAS storage with wider inserts. Fixture shutdown completed.
-
Focused execution receipt checks/1791911127844719609-3.json and final audit receipt checks/1791911294729948390-4.json both record exit 0 at the assessed head.
-
Commands, hashes, receipts, logs, and review scope are retained in validation-summary.json and review-analysis.json under /home/xupeng/.local/state/mo-bot/jobs/a40e550939b0538832aeeb3b/attempt-1. Frozen CI records successful unit, build, static-analysis, and BVT checks.
Limitations:
-
Compatibility validation used serialized expressions and controlled endpoint capabilities, not a live mixed-version cluster.
-
Connector/J and mo-tester runs were author-reported; they were not repeated locally, and raw CI logs were not supplied.
-
BIGINT presentation retains existing projection guards. Result-buffer widening is intentional; no throughput benchmark was performed.
-
The linked issue body was absent; its required behavior was taken from the frozen PR description.
Merge Queue Status
This pull request spent 1 hour 25 minutes 6 seconds in the queue, including 1 hour 24 minutes 26 seconds running CI. Required conditions to merge
|
main took MORPCVersion112 for signed WEEK/DAYOFYEAR result vectors (matrixorigin#30101), so low-precision float integer arguments move to MORPCVersion113: the remote-expression gate, the expression-contract version, the persisted expression floor and their tests (a v112 destination is now the rejected case). mysql_sql.go is regenerated from the merged grammar. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
Leave the issue open for reporter verification after merge.
What this PR does / why we need it:
WEEK()andDAYOFYEAR()expose narrow unsigned types to JDBC and CTAS. CTAS consequently rejects inserts such as(256,65536)even though MySQL accepts them. Bind and execute these functions with signed INT results, so CTAS stores INT; reuse the existing frontend presentation mechanism to expose signed BIGINT for eligible direct queries and prepared statements, matching MySQL's type contract.Preserve legacy serialized UINT8/UINT16 execution through the existing result-wrapper boundary, and require MORPC v112 for new signed result contracts at worker placement, destination validation, receiver validation and persisted-expression admission. Numerical results, NULL/zero handling, week modes and session defaults are covered by regression tests. Direct metadata coverage follows the existing projection guards for materialization and ordinal handling.
Validation on macOS arm64 with Go 1.27.1:
go vetand repository-pinned golangci-lint v2.14.0.WEEK result payloads grow from one to four bytes per row, DAYOFYEAR from two to four. The arithmetic loop and NULL bitmap remain unchanged; no intermediate widening vector or additional per-row pass is introduced. Mixed-version checks use the existing capability probes. CI results are pending.