Repository navigation
fix: support LAST_INSERT_ID(expr) in ODKU assignments - #28531
VioletQwQ-0 wants to merge 12 commits into
Conversation
8786a69 to
934d8b0
Compare
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? |
|
CI repair: added the missing |
|
CI repair pushed at 0d465e2. The production planner now passes the generated-provenance flag only for real ODKU, so INSERT IGNORE keeps the dependent-unique-index reorder guard. The failing regression fixtures now initialize DedupJoin provenance sentinels, Process sequence state, generated-ID provenance, and neutral remote DedupJoin metadata. Run 34748398521 also recorded an unrelated SCA failure in pkg/tests/issues/issue_27666_test.go plus Compose/Standalone MinIO image pull-denied setup failures; coverage was consequently dependent. Local frontend/plan/compile tests remain blocked by the missing cgo/libmo.dylib prerequisite. New exact-head run 34753387943 is in progress; no CI rerun or reviewer re-request was performed. |
|
Current exact-head run |
|
Run 34753387943 is now terminal on exact head 0d465e2. UT Coverage passed; Compose and Standalone failed before BVT because Docker could not pull minio/mc and minio/minio, so Coverage had no complete producer. SCA reported the unrelated existing pkg/tests/issues/issue_27666_test.go:436 unused-function error. Ubuntu UT reported only pkg/logservice/TestFailedBootstrap; the PR diff does not touch pkg/logservice, and an exact-head local GOWORK=off go test -mod=readonly -race -count=3 -run '^TestFailedBootstrap$' ./pkg/logservice passed. This is retained as unrelated/transient CI evidence; no rerun was started. |
fengttt
left a comment
There was a problem hiding this comment.
See my comment in the issue. I believe this is an anti feature that we simply should NOT support at all.
|
The current-head review is a product/scope decision rather than a concrete code or test defect: it says I am leaving the implementation unchanged and recording this as a maintainer decision blocker. Once the supported SQL contract is decided, the PR can either continue with the existing compatibility scope or be revised to remove it deliberately. |
|
@fengttt I accept retaining rejection as the current direction. There is no concrete customer/framework dependency in issue #28163 that justifies proceeding solely for MySQL compatibility. I have marked the implementation paused in the PR description and retained Draft status; the earlier Ready wording and stale current-head validation claim have been removed. The code is retained for reference. Reconsideration requires an actual dependency and an accepted product requirement. This does not affect the supported zero-argument LAST_INSERT_ID() correctness work. Your CHANGES_REQUESTED remains applicable; I am not requesting re-review or marking the objection resolved. |
What type of PR is this?
Which issue(s) this PR fixes:
issue #28163
What this PR does / why we need it:
Paused — Draft; not proposed for merge. Following the maintainer's objection to supporting
LAST_INSERT_ID(expr), the author accepts retaining rejection as the current proposed direction. No concrete customer/framework dependency has been provided in the issue to justify adding the side-effecting expression. Further merge preparation is paused pending an accepted requirement and product decision.The retained implementation adds the one-argument form while preserving the zero-argument session read. It carries expression state through statement publication, ODKU provenance, retry handling, and pipeline/MORPC transport, including a v58 capability gate. These changes are retained for reference and are not an accepted product contract or a completed fix.
Reconsideration requires a concrete application/framework dependency, its SQL and version, and the cost or correctness limitations of alternatives. Correctness of the supported zero-argument
LAST_INSERT_ID()remains a separate concern.Validation
Current retained head:
0d465e267999ad4dc36412bd7b1d1c0bacef12fe. This body-only disposition update does not change source or run tests.Earlier package/race checks reported at
8786a69bad8f77512b5428323a23565205dde5ffare historical evidence, not a complete validation of the current head.The recorded current-head CI run
34753387943did not fully pass. Prior investigation recorded UT Coverage success, MinIO image-pull setup failures before Compose/Standalone BVT, an unrelated SCA finding, and a logservice bootstrap test failure with a passing local focused rerun. This disposition does not independently revalidate those diagnoses or rerun CI.Real SQL/BVT, COM_QUERY/COM_STMT_EXECUTE, raw OK/driver LastInsertId, conversion-oracle and multi-CN validation remain incomplete. No Ready, semantic-completion, BVT PASS or QA PASS claim is made.
QA required: yes if support is reconsidered, because the change affects user-visible SQL, session state, client protocol and distributed execution. Issue #28163 remains open for the compatibility decision.