Repository navigation
Fixed keyword escaping for "TOP" - #106817
EilRoviSoft wants to merge 1 commit into
Conversation
|
This is reproducable on current head with: create table test_3 (TOP String) engine = MergeTree() order by TOP;
create view test_4 (c String) as with A as (select `TOP` AS c from test_3) select c from A;
show create test_4;Output: |
|
But I don't how to fix column's name escaping in general if keyword is used for it. |
|
Workflow [PR], commit [4db00b5] Summary: ❌
AI ReviewSummaryThis PR changes Missing context / blind spots
Tests
Final VerdictStatus: Minimum required action: add the focused regression test for the |
| else | ||
| { | ||
| pos = pos_before_top; | ||
| expected = expected_before_top; |
There was a problem hiding this comment.
This bug fix needs focused regression coverage. The change is a speculative parser rollback for TOP, but the PR does not add a stateless test for the reported persisted-view round trip, so a future formatter/parser change can reintroduce invalid SHOW CREATE output without failing CI. Please add a small test using the repro shape: create a table with column TOP, create a view that selects `TOP` AS c through a CTE, then run SHOW CREATE VIEW and verify it succeeds.
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 15/21 (71.43%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 1 line(s) · Uncovered code |
|
Dear @EilRoviSoft, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed bad escaping for column's name if reserved keyword
TOPis used for it.