Repository navigation
fix: evaluate single-table UPDATE assignments left to right - #27337
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? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-reviewed exact head cbec91d1825977e314bcbb265a9f043e69a6bbcf.
The remaining ENUM/SET projection-representation blocker is fixed: each sequential binding now inherits the actual type emitted by the preceding projection instead of redeclaring carried display vectors with catalog storage types. Assigned columns still carry the canonical cast result into the next generation, so carried and newly assigned special values remain consistent.
The full embedded left-to-right UPDATE regression (including carried and reassigned ENUM/SET values) passed, as did focused planner assignment tests under -race -count=10. The earlier repeated-target, subquery/qualifier, numeric-target, and plan-size fixes remain intact. No blocking issue remains.
aptend
left a comment
There was a problem hiding this comment.
Re-reviewed the complete diff and the increments after my previous review on exact head cbec91d1825977e314bcbb265a9f043e69a6bbcf.
The earlier blockers are closed in the implementation, not only in the reported scenarios: assignment occurrences remain ordered (including repeated targets), each RHS binds against the preceding projected row image with normal qualifier/subquery semantics and target numeric context, old values remain distinct for maintenance, and the projection-growth guard bounds the wide-table case. The latest type-provenance change also keeps carried ENUM/SET display vectors and newly assigned storage values consistent across generations.
Focused exact-head planner validation passed for the projection bound and the full prepared numeric-target matrix; go build, go vet, and git diff --check also passed for the owning package/diff. Current required CI checks are green. No blocking issue found.
Merge Queue Status
This pull request spent 3 hours 3 minutes 4 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #27337 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
|
…igin#27337) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27336 ## What this PR does / why we need it: Fixes single-table UPDATE assignment evaluation so SET expressions are evaluated from left to right, matching MySQL compatibility semantics. Later assignments now read values produced by earlier assignments in the same statement. The change preserves SET-clause order during planning and uses sequential projections for standard single-table UPDATE statements. Multi-target UPDATE and UPDATE ... FROM keep their existing simultaneous-assignment behavior. Adds end-to-end regression coverage for chained and swap assignments, prepared execution, transactions, and volatile expressions. It also updates affected BVT expected results to the corrected semantics. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…igin#27337) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27336 ## What this PR does / why we need it: Fixes single-table UPDATE assignment evaluation so SET expressions are evaluated from left to right, matching MySQL compatibility semantics. Later assignments now read values produced by earlier assignments in the same statement. The change preserves SET-clause order during planning and uses sequential projections for standard single-table UPDATE statements. Multi-target UPDATE and UPDATE ... FROM keep their existing simultaneous-assignment behavior. Adds end-to-end regression coverage for chained and swap assignments, prepared execution, transactions, and volatile expressions. It also updates affected BVT expected results to the corrected semantics. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #27336
What this PR does / why we need it:
Fixes single-table UPDATE assignment evaluation so SET expressions are evaluated from left to right, matching MySQL compatibility semantics. Later assignments now read values produced by earlier assignments in the same statement.
The change preserves SET-clause order during planning and uses sequential projections for standard single-table UPDATE statements. Multi-target UPDATE and UPDATE ... FROM keep their existing simultaneous-assignment behavior.
Adds end-to-end regression coverage for chained and swap assignments, prepared execution, transactions, and volatile expressions. It also updates affected BVT expected results to the corrected semantics.