Repository navigation
fix(plan): return MySQL 1146 for missing tables - #26708
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.
Deep review of exact head a96254589643 found no blocking issue.
The change is correctly scoped to the point where a valid database has resolved successfully but the base relation itself is absent. Missing/default databases still retain their existing 1049/1046 classification, resolver errors are propagated unchanged, and the frontend sends the resulting ER_NO_SUCH_TABLE native code (1146) through MySQLCode(), which is the contract required by Connector/ODBC. The formatted constructor preserves the existing user-visible diagnostic while retaining the typed MatrixOne error through binary serialization.
Validation passed for both changed owners: focused missing-table/error-code tests, complete pkg/common/moerr and pkg/sql/plan tests, package build, vet, and diff check. I also traced qualified/unqualified table resolution, CTE fallback, snapshot/subscription resolution, and the adjacent missing-database control; no error-class regression remains.
Merge Queue Status
This pull request spent 2 hours 10 minutes 37 seconds in the queue, with no time running CI. Waiting for any of
All conditions
ReasonPull request #26708 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.
Failing checks: 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
|
## 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#26684 ## What this PR does / why we need it: fix(plan): return MySQL 1146 for missing tables Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## 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#26684 ## What this PR does / why we need it: fix(plan): return MySQL 1146 for missing tables Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## 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#26684 ## What this PR does / why we need it: fix(plan): return MySQL 1146 for missing tables 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 #26684
What this PR does / why we need it:
fix(plan): return MySQL 1146 for missing tables