Skip to content

Treat # lines as comments when splitting test statements - #143

Merged
kyleconroy merged 1 commit into
claude/project-thread-wk8rxb-todofrom
claude/project-thread-wk8rxb-gen
Dec 1, 2026
Merged

kyleconroy merged 1 commit into
claude/project-thread-wk8rxb-todofrom
claude/project-thread-wk8rxb-gen

Conversation

@kyleconroy

Copy link
Copy Markdown
Collaborator

Requested by Kyle · project thread

Summary

Stacked on #141. This fixes one of the two explain-generator gaps found in #139.

ClickHouse reads # and #! lines as comments. The statement splitters in cmd/regenerate-explain and parser/parser_test.go joined such a line onto the next statement, so the comment swallowed the statement and ClickHouse returned an error instead of EXPLAIN output. Both splitters now skip these lines, except inside a multi-line string literal (02192_comment has one).

Regenerating with 26.8 adds 53 explain files. All of them pass, and no existing explain file changed.


Generated by Claude Code

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
@kyleconroy kyleconroy self-assigned this Dec 1, 2026
@kyleconroy
kyleconroy added this pull request to stack #142 December 1, 2026 13:14
@kyleconroy
kyleconroy merged commit 4f33be0 into main Dec 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants