Repository navigation
Publish generated IDs for LOAD DATA - #31623
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? |
…921a751328bff101c9fb9553710affd87190bb0
|
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: 3f86be350cf73ef5ca4d30f5f6690329ca98e80d
Assessment: approve
LOAD now publishes generated IDs through the existing statement coordinator, preserving session state when no ID is generated. Completion, retry and error paths remain coherent. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
Validation:
-
Reviewed all five changed files, affected owners and consumers, linked issue and both discussion entries.
-
Static audit passed: frozen patch identity, clean source, formatting and all 20 BVT statements. Receipt checks/1793223076581630837-4.json matches review-audit.log.
-
Frozen current-head CI reports successful build, UT, SCA, coverage and active proxy/multi-CN BVT.
Limitations:
-
No fresh local Go tests or SQL service execution; current-head CI evidence was reused.
-
Detailed CI logs and author-reported validation artifacts were unavailable; historical experiments were not treated as current-head execution proof.
✅ Merged into
|
| Condition | Required by | |
|---|---|---|
| ✅ | #review-threads-unresolved = 0 |
GitHub branch protection |
| ✅ | github-review-approved |
GitHub branch protection |
The batch, tested in place
| Condition | Required by | |
|---|---|---|
| ✅ | any of: check-success = CI Required, check-neutral = CI Required, check-skipped = CI Required |
GitHub branch protection |
Times in UTC · dashboard · how the merge queue works
…921a751328bff101c9fb9553710affd87190bb0
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
LOAD DATA could insert auto-increment values while leaving LAST_INSERT_ID() at zero or a previous statement's value. Publish the statement's generated ID in the MySQL OK response and update the session when it is nonzero, using the existing statement-wide coordinator. Loads that generate no user auto-increment value leave the session value unchanged.
Prior validation (reused; frontend implementation and SQL BVT unchanged by the CI repair):
The change adds constant work per successful LOAD, with no per-row work or additional I/O.
CI repair validation (
3f86be350cf73ef5ca4d30f5f6690329ca98e80d, based on main3cf38889bca2d183e973e78b1288f8c704727542):TestLoadAutoIncrementObservedDemandstill expected LOAD to leave LAST_INSERT_ID unchanged. Update its generated-ID expectations (1 and offset 3) and assert the MySQL OK IDs through the existing client; allocation, rollback and explicit-ID checks remain intact.mo-cgo-test: the exact test passed with-count=1 -short -tags matrixone_test -covermode=set -coverpkg=./pkg/frontend; normal full-package-count=1 -tags matrixone_test ./pkg/tests/sqlintegrationpassed (169.743s, CI admission pool size 2).go vetand incrementalgolangci-lint --new-from-rev 3cf38889bca2d183e973e78b1288f8c704727542passed for./pkg/frontend ./pkg/tests/sqlintegration; formatting and diff checks passed.