Repository navigation
fix(plan): support parameters in prepared CTAS - #26003
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? |
gouhongshen
left a comment
There was a problem hiding this comment.
Codex automated review
No findings. The change correctly carries prepared CTAS parameters, including NULLs, into the internal INSERT…SELECT while preserving non-prepared behavior. Exact-head unit, static-analysis, and BVT checks pass; the modified prepare BVT completed 531/531 statements successfully.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed latest head 8f13148. No blocking findings.
Verified prepared CTAS parameter collection/order, propagation into the internal INSERT ... SELECT, NULL preservation, schema dependency tracking/reprepare, repeated execution after dropping the target, and non-prepared CTAS behavior. Local full tests for pkg/sql/plan, pkg/sql/compile, and pkg/util/executor pass; the new focused tests pass 5x; go vet passes; current CI is green.
aunjgr
left a comment
There was a problem hiding this comment.
Reviewed independently. Prepared CTAS now exposes the embedded SELECT query for parameter discovery/reset, preserves schema dependencies, and forwards parameter values plus NULL state into the internal INSERT execution. Unprepared CTAS behavior remains unchanged. No actionable issues found.
## What type of PR is this? - [ ] API-change - [] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25425 ## What this PR does / why we need it: support parameters in prepared CTAS Co-authored-by: XuPeng-SH <[email protected]>
## What type of PR is this? - [ ] API-change - [] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25425 ## What this PR does / why we need it: support parameters in prepared CTAS Co-authored-by: XuPeng-SH <[email protected]>
## What type of PR is this? - [ ] API-change - [] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25425 ## What this PR does / why we need it: support parameters in prepared CTAS Co-authored-by: XuPeng-SH <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
issue #25425
What this PR does / why we need it:
support parameters in prepared CTAS