Prevent excessive output on syntax error by alexey-milovidov · Pull Request #93876 · ClickHouse/ClickHouse · GitHub
Skip to content

Prevent excessive output on syntax error#93876

Merged
alexey-milovidov merged 4 commits into
masterfrom
less-output-on-syntax-error
Jan 11, 2026
Merged

Prevent excessive output on syntax error#93876
alexey-milovidov merged 4 commits into
masterfrom
less-output-on-syntax-error

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jan 11, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Prevent excessive output on a syntax error. Before this change, it output the whole SQL script, which could contain a lot of queries.

Version info

  • Merged into: 26.1.1.422

@clickhouse-gh

clickhouse-gh Bot commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Jan 11, 2026
@alexey-milovidov alexey-milovidov merged commit 0723d41 into master Jan 11, 2026
127 of 132 checks passed
@alexey-milovidov alexey-milovidov self-assigned this Jan 11, 2026
@alexey-milovidov alexey-milovidov deleted the less-output-on-syntax-error branch January 11, 2026 20:40
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jan 11, 2026
@clickgapai

Copy link
Copy Markdown
Contributor

Hi @alexey-milovidov — while reviewing this PR I found the following:

Happy to discuss — close anything that's wrong or already addressed.

@clickgapai

Copy link
Copy Markdown
Contributor

Apologies for the duplicate notification — we had a race condition in our notification system where multiple processes posted simultaneously. The duplicate has been removed and we've added a strict 3-layer dedup guard (DB lock + immediate key + GitHub comment check) to ensure this cannot happen again.

clickgapai pushed a commit to clickgapai/ClickHouse that referenced this pull request Apr 3, 2026
…ultiquery scripts

The original fix in PR ClickHouse#93876 only addressed generic parse errors and
excessive input errors, but missed three other error paths that still
used all_queries_end: the lookahead lexical error, post-parse lexical
error, and unmatched parentheses. This moves the query boundary
computation before those checks and uses it consistently.

Closes ClickHouse#101509

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@clickgapai

clickgapai commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants