Skip to content

fix(plan): support parameters in prepared CTAS - #26003

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix-25425-prepared-ctas
Jul 22, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix-25425-prepared-ctas

Conversation

@jiangxinmeng1

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • [] BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #25425

What this PR does / why we need it:

support parameters in prepared CTAS

@jiangxinmeng1
jiangxinmeng1 requested a review from a user July 22, 2026 03:27
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@gouhongshen gouhongshen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 aunjgr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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]>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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]>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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]>

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants