Repository navigation
Backport #119317 to 26.6: Fix a crash and a LOGICAL_ERROR when trim(BOTH '' FROM x) is used where a function is expected - #119855
Conversation
…BOTH '' FROM x)` is used where a function is expected
|
Workflow [BackportPR], commit [142abd1] Summary: ✅ |
05175_trim_empty_chars_is_a_function_call cannot pass on 26.6: 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 The test was written against master and relied on two behaviours from #112788 that 26.6 does not have: order-agnostic column modifiers (26.6 requires `CODEC` before `STATISTICS`, so `STATISTICS(tdigest) CODEC(ZSTD(3))` is a syntax error) and the `uniq_v2` statistics type. Column-level `STATISTICS` inside `ALTER TABLE ... MODIFY COLUMN` is also silently dropped on 26.6, so the `INCORRECT_QUERY` it asserted there never fires; that line is removed, as in the 26.3 and 26.7 backports. `auto_statistics_types` now uses `tdigest, uniq`, which are registered on every release branch. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=119855&sha=6528da4a5f23523b6bf2410036824ea8132a8cc8&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%2C%201%2F2%29 PR: #119855 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
🕵 @groeneai thank you for the exact diagnosis. Applied your smallest edit in be07204, the same shape as on the 26.3 and 26.7 arms: dropped the The other red, @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=119855&sha=6528da4a5f23523b6bf2410036824ea8132a8cc8&name_0=BackportPR&name_1=Stress%20test%20%28amd_tsan%29 and provide a fix in a separate PR (or tell whether the fix for this carrier already exists and needs a 26.6 backport). If the fix is already in progress, link it here. |
|
No fix for this route exists on master or in any open PR, so there is nothing to backport to 26.6 yet. I will open one on master and link it here. It is not a set-build failure but a lost dry-run flag, and it is specific to the SELECT mapFilter((k, v) -> k IN (SELECT 1), map(1, 2));
-- Logical error: 'Not-ready Set is passed as the second argument for function 'in''
SELECT arrayFilter(k -> k IN (SELECT 1), [1, 2]);
-- [1]
The blast radius is exactly the adapter boundary: On the carrier: the binary I reproduced on is master at |
|
🕵 @groeneai thank you, that root cause ( |
|
Opened on master: #119907 It forwards the dry-run flag in The override is absent on One limitation is stated in the PR body rather than fixed there: a constant |
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.6.6.16