Repository navigation
Tags
Tags
Clear the explain_todo statements added by parameter substitution (#146) * Parse ALTER QUOTA and plural SHOW CREATE QUOTA ALTER QUOTA now goes through the CREATE QUOTA parser, which matches the CreateQuotaQuery node ClickHouse prints for both. SHOW CREATE QUOTA with more than one name prints as SHOW CREATE QUOTAS. Clears all 24 todo statements in 01297_create_quota. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4GWXBrmUXAf6RUPFSs * Clear the remaining explain_todo statements from the enabled tests - SHOW TABLES accepts IN as well as FROM. - COLUMN can be an implicit alias (select x column). - Double-quoted identifiers use the same escape rules as backquoted ones, so unknown escapes keep their backslash; identifier and column names are escaped like ClickHouse's writeEscapedString when printed. - The DISTINCT group of a mixed union flattens nested unions, matching NormalizeSelectWithUnionQueryMatcher. - EXPLAIN CURRENT TRANSACTION works as a subquery (viewExplain with two arguments). - A query parameter in WITH keeps its alias. - INTERVAL CASE ... END <unit> parses as an interval. - WITH elements cloned into later SELECTs of a union print TableJoin before TableExpression, as ASTTablesInSelectQueryElement::clone does. explain_todo is empty again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4GWXBrmUXAf6RUPFSs * Treat # lines as comments when splitting test statements ClickHouse reads "# " and "#!" as line comments. Both statement splitters joined such a line into the next statement, so the comment swallowed it and ClickHouse returned an error instead of EXPLAIN output. Both splitters now skip these lines, except inside a multi-line string literal. Regenerating adds 53 explain files, and all of them pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4GWXBrmUXAf6RUPFSs * Substitute the test runner's database parameters Statements that use {CLICKHOUSE_DATABASE:Identifier} and similar never got explain files, because ClickHouse refuses to explain them without a value and substitutes the value before printing when one is given. regenerate-explain now sends fixed values (test_db, test_db_1, test_db_2), and the parser tests substitute the same names before parsing. This adds 2,055 explain files. 2,006 statements pass; the other 49 are recorded in explain_todo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4GWXBrmUXAf6RUPFSs * Clear the explain_todo statements added by parameter substitution Test harness: - String parameters are substituted after parsing (ast.Parameter.Value), so (p1, p2) stays a tuple function as in ClickHouse. - Parameters inside quoted strings and in a view's body are left alone. Parser and EXPLAIN: - TRUNCATE [ALL] TABLES FROM [IF EXISTS] db [[NOT] [I]LIKE ...]. - RENAME without TABLE. - UPDATE db.table prints the database identifier; ON CLUSTER is accepted. - CREATE TABLE ... AS SELECT ... FORMAT x puts FORMAT on the CREATE query. - CREATE DATABASE ... SETTINGS without an engine prints query settings. - Table names in CREATE are escaped like other dumped names. - ATTACH DATABASE hides engine secrets as CREATE does. - ALTER TABLE ... MODIFY REFRESH. explain_todo is empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4GWXBrmUXAf6RUPFSs * Keep this branch's metadata after merging main The merge took main's explain_todo entries for statements this branch fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuRZ4GWXBrmUXAf6RUPFSs --------- Co-authored-by: Claude <noreply@anthropic.com>
Add issue template, PR template, and CONTRIBUTING.md (#120) - Issue template requests full SQL query and suggests EXPLAIN AST output - PR template notes that external PRs are not accepted - CONTRIBUTING.md explains that all code is written by Claude Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>