Skip to content

fix(frontend): guard prepared multi-statement planning without a process - #27227

Merged
XuPeng-SH merged 7 commits into
matrixorigin:mainfrom
daviszhen:fix/issue-26766-prepared-multistatement
Aug 18, 2026
Merged

XuPeng-SH merged 7 commits into
matrixorigin:mainfrom
daviszhen:fix/issue-26766-prepared-multistatement

Conversation

@daviszhen

@daviszhen daviszhen commented Aug 17, 2026 •

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 #26766

What this PR does / why we need it:

  • guard prepared-plan tracing when a reused compiler context has no process
  • keep planning functional without a transaction operator
  • add a regression test for a missing compiler process

This prevents a later EXECUTE entry in a multi-statement packet from exposing a nil-pointer panic.

@daviszhen
daviszhen requested a review from XuPeng-SH as a code owner August 17, 2026 06:50
@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 →

@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.

Deep-reviewed the full diff at exact head 7a113f4033fc.

The change correctly makes transaction tracing optional when the reused compiler context has no process, while preserving the existing sequence/duration tracing whenever a transaction operator exists. Planning state and error propagation are otherwise unchanged, and the nil-process path completes through the normal planner.

The missing-process regression and neighboring prepared-expression/retry tests passed on this head. No blocking issue found.

@mergify

mergify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-18 07:47 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-08-18 11:42 UTC · at e1d0968f2db169fb9940aa81e802acb4fc00bb71

This pull request spent 3 hours 55 minutes 18 seconds in the queue, with no time running CI.

Reason

The pull request can't be updated

This pull request seems to come from a fork, and Mergify needs the author's permission to update its branch.
The author needs to enable "Allow edits from maintainers" on this pull request, or update the branch manually.

Hint

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

@XuPeng-SH
XuPeng-SH merged commit 4d81724 into matrixorigin:main Aug 18, 2026
20 of 21 checks passed
@mergify mergify Bot added dequeued and removed queued labels Aug 18, 2026
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…ess (matrixorigin#27227)

## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#26766

## What this PR does / why we need it:

- guard prepared-plan tracing when a reused compiler context has no
process
- keep planning functional without a transaction operator
- add a regression test for a missing compiler process

This prevents a later `EXECUTE` entry in a multi-statement packet from
exposing a nil-pointer panic.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…ess (matrixorigin#27227)

## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#26766

## What this PR does / why we need it:

- guard prepared-plan tracing when a reused compiler context has no
process
- keep planning functional without a transaction operator
- add a regression test for a missing compiler process

This prevents a later `EXECUTE` entry in a multi-statement packet from
exposing a nil-pointer panic.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…ess (matrixorigin#27227)

## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#26766

## What this PR does / why we need it:

- guard prepared-plan tracing when a reused compiler context has no
process
- keep planning functional without a transaction operator
- add a regression test for a missing compiler process

This prevents a later `EXECUTE` entry in a multi-statement packet from
exposing a nil-pointer panic.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
ci — e1d0968f Deployed Aug 18, 2026 by mergify[bot] via Matrixone Utils CI / Coverage #46876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/enhancement size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants