Repository navigation
fix: quote embedded backticks in clone paths - #26317
Merged
mergify[bot] merged 2 commits intoJul 28, 2026
Merged
mergify[bot] merged 2 commits into
mergify[bot] merged 2 commits into
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
approved these changes
Jul 28, 2026
XuPeng-SH
left a comment
Contributor
There was a problem hiding this comment.
Deep review complete: semantic catalog lookups now use decoded identifiers, SQL generation consistently quotes embedded backticks, and the clone/branch/drop functional closure is covered. Local owning-package tests, the five-path embedded regression, go vet, and current CI all pass.
Contributor
Merge Queue Status
This pull request spent 1 hour 20 minutes 10 seconds in the queue, including 42 minutes 7 seconds running CI. Required conditions to merge
|
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
Valid table identifiers containing an embedded backtick crossed three different representation boundaries incorrectly: - table CLONE/Data Branch SQL-escaped the decoded identifier before semantic catalog lookup, resolving a different table name; - database CLONE/Data Branch interpolated catalog names into `SHOW CREATE TABLE` without identifier escaping; - DROP DATABASE interpolated relation names into its internal `DROP TABLE` without identifier escaping. This change keeps decoded names unchanged for engine lookup and quotes them only at SQL-generation boundaries. The embedded regression independently exercises ordinary table clone, table branch, database branch, database clone, and DROP DATABASE, including terminal row/catalog assertions. Validation: - `go build ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plan` - `go vet ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plan ./pkg/tests/issues` - full `pkg/frontend`, `pkg/sql/compile`, and `pkg/sql/plan` tests - embedded five-path regression, normal and `-race` - preflight: `PASS review=PASS validation=PENDING` QA handoff required: yes. Please verify all five quoted-identifier paths in a deployed test environment before closing the issue. Approved by: @XuPeng-SH
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
Valid table identifiers containing an embedded backtick crossed three different representation boundaries incorrectly: - table CLONE/Data Branch SQL-escaped the decoded identifier before semantic catalog lookup, resolving a different table name; - database CLONE/Data Branch interpolated catalog names into `SHOW CREATE TABLE` without identifier escaping; - DROP DATABASE interpolated relation names into its internal `DROP TABLE` without identifier escaping. This change keeps decoded names unchanged for engine lookup and quotes them only at SQL-generation boundaries. The embedded regression independently exercises ordinary table clone, table branch, database branch, database clone, and DROP DATABASE, including terminal row/catalog assertions. Validation: - `go build ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plan` - `go vet ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plan ./pkg/tests/issues` - full `pkg/frontend`, `pkg/sql/compile`, and `pkg/sql/plan` tests - embedded five-path regression, normal and `-race` - preflight: `PASS review=PASS validation=PENDING` QA handoff required: yes. Please verify all five quoted-identifier paths in a deployed test environment before closing the issue. Approved by: @XuPeng-SH
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
Valid table identifiers containing an embedded backtick crossed three different representation boundaries incorrectly: - table CLONE/Data Branch SQL-escaped the decoded identifier before semantic catalog lookup, resolving a different table name; - database CLONE/Data Branch interpolated catalog names into `SHOW CREATE TABLE` without identifier escaping; - DROP DATABASE interpolated relation names into its internal `DROP TABLE` without identifier escaping. This change keeps decoded names unchanged for engine lookup and quotes them only at SQL-generation boundaries. The embedded regression independently exercises ordinary table clone, table branch, database branch, database clone, and DROP DATABASE, including terminal row/catalog assertions. Validation: - `go build ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plan` - `go vet ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plan ./pkg/tests/issues` - full `pkg/frontend`, `pkg/sql/compile`, and `pkg/sql/plan` tests - embedded five-path regression, normal and `-race` - preflight: `PASS review=PASS validation=PENDING` QA handoff required: yes. Please verify all five quoted-identifier paths in a deployed test environment before closing the issue. Approved by: @XuPeng-SH
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #26127
What this PR does / why we need it:
Valid table identifiers containing an embedded backtick crossed three different
representation boundaries incorrectly:
catalog lookup, resolving a different table name;
SHOW CREATE TABLEwithout identifier escaping;DROP TABLEwithout identifier escaping.
This change keeps decoded names unchanged for engine lookup and quotes them only
at SQL-generation boundaries. The embedded regression independently exercises
ordinary table clone, table branch, database branch, database clone, and DROP
DATABASE, including terminal row/catalog assertions.
Validation:
go build ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plango vet ./pkg/frontend ./pkg/sql/compile ./pkg/sql/plan ./pkg/tests/issuespkg/frontend,pkg/sql/compile, andpkg/sql/plantests-racePASS review=PASS validation=PENDINGQA handoff required: yes. Please verify all five quoted-identifier paths in a
deployed test environment before closing the issue.