Repository navigation
Backport #119317 to 26.7: Fix a crash and a LOGICAL_ERROR when trim(BOTH '' FROM x) is used where a function is expected - #119856
Conversation
…BOTH '' FROM x)` is used where a function is expected
|
Workflow [BackportPR], commit [6808d57] Summary: ✅ |
05175_trim_empty_chars_is_a_function_call cannot pass on 26.7: it asserts two behaviours this branch predatesThe cherry-picked fix itself is complete here: this PR's file list and per-file counts are
Both commits belong to #112788, merged to master on 2026-08-14, after the 26.7 branch cut and before Smallest edit that works identically on 26.3, 26.6 and 26.7, if the test is worth keeping there:
If carrying the test here is not worth it, dropping the 05175 pair from this branch still leaves the I hold |
…ammar Two statements of the new test assert behaviours that arrived in master with #112788, after the 26.7 branch cut: - `ALTER TABLE ... MODIFY COLUMN c Int64 STATISTICS(...)` silently drops the column-level `STATISTICS` clause here, so no type validation runs and the expected `INCORRECT_QUERY` is never thrown. The statement is removed; the `ALTER TABLE ... ADD STATISTICS` line keeps the `ALTER` slot covered. - Column modifiers must be written in the fixed order `COMMENT`, `CODEC`, `STATISTICS`, `TTL` on this branch, so `STATISTICS(tdigest) CODEC(ZSTD(3))` is a syntax error. The `CREATE TABLE ok` line is rewritten with `CODEC` before `STATISTICS`; `ASTColumnDeclaration` already formats it in that order, so the expected output is unchanged. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=119856&sha=03e5c7fd77e86da6abee8ab725a382bd0ffb4cd3&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 PR: #119856 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
🕵 Thanks, the diagnosis is right: both statements assert behaviours that came with #112788, which 26.7 predates. Applied the smallest edit in 6808d57: dropped the |
Original pull-request #119317
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.7.8.15