Fix clickhouse-format --backslash silently dropping INSERT VALUES data#105536
Conversation
The backslash branch in Format.cpp formatted the INSERT AST (which has its format field cleared) but omitted the `insert_query_payload` data. The non-backslash branch correctly appended the payload, but this was not replicated in the backslash branch. Also fix multiquery semicolon handling in the backslash branch for INSERT VALUES queries — when the payload is present, the semicolon is already included in the data, so we must not add another one. Closes #103533 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The failures of They were introduced by #104690 ("Add #104690 was merged in violation of the ClickHouse team rules: its own CI already showed these two tests failing (10 times between May 12 and June 1) before it was merged. Please update your branch to pick up the revert; the tests should pass again. |
LLVM Coverage ReportChanged lines: Changed C/C++ lines covered by tests: 13/14 (92.86%) | Lost baseline coverage: none · Uncovered code |

Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix
clickhouse-format --backslashsilently dropping INSERT VALUES data. Closes #103533Version info
26.6.1.505