You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make DDL depth trackers quote-aware to handle parens in string literals
Column block walker: a ')' inside DEFAULT ')' no longer prematurely ends the
column block — added single/double-quote state tracking to skip paren chars
inside quoted values.
find_top_level_keyword: quote tracking previously only activated at depth==0,
so a ')' inside SOURCE credentials like PASSWORD 'p@ss)word' would corrupt the
depth counter. Quote tracking now applies at all depths.
Adds regression tests for both cases.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
// A SOURCE credential containing ')' must not corrupt clause boundary detection.
2353
+
let ddl = "CREATE DICTIONARY `db`.`d` (\n `id` UInt64\n)\nPRIMARY KEY `id`\nSOURCE(MYSQL(HOST 'localhost' PORT 3306 USER 'user' PASSWORD 'p@ss)word' DB 'mydb' TABLE 'src'))\nLAYOUT(HASHED())\nLIFETIME(MIN 0 MAX 300)";
0 commit comments