Repository navigation
Backport #119680 to 26.7: Validate the length of a BIT column value coming from MySQL - #119753
Conversation
… coming from MySQL
|
Workflow [BackportPR], commit [2683d25] Summary: ✅ |
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=119753&sha=a6aee925abe8b5c975dd92f998ddb12b3b834a1f&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 and provide a fix in a separate PR. If the fix is already in progress, link it here. Context: The other red, |
|
The plan of the dying query contains no exchange, so this is not the distributed-plan face and #116446 will not close it. Pinned from the job's own server log: query Root cause on 26.7: Master does not have this because #112942 made that merge obey #118802, the open backport of #114523, does not close it either. It keeps So what this red needs is #112942 reaching 26.7. The branch |
`04408_array_fold_cancellation` failed with
-TIMEOUT_EXCEEDED
+runtime throw: no timeout
and the harness's own reruns then passed five times out of five. The
test builds the array with `range(120000)` on this branch, while
`master` halved it to `range(60000)` (#110942, 2026-07-18) precisely
because "a longer array makes that setup rival `max_execution_time`,
so under sanitizers the query can be killed by the outer `timeout`
before the in-function check fires" - and the failing job is the
`amd_asan_ubsan` one. #110942 is now labelled for 26.6 and 26.7; this
merge re-triggers the workflow in the meantime.
The earlier run of this branch also died on `Logical error: 'Bucket 4
is pushed twice'`, which is a pre-existing 26.6/26.7 abort in
`04605_parallel_replicas_merging_aggregated_bucket_order` unrelated to
validating a MySQL `BIT` length - it has hit a dozen unrelated 26.7
pull requests in three weeks, and the `chassert` that turns it into a
dead server is only replaced by a thrown exception on `master` and
26.8.
|
The separate PR is #121593, late, and I am sorry for the delay. It resolves the conflicts of the auto-closed cherry-pick #113810 against #118802 landed while I was working, and it improves the picture: 26.7 now has #114523's bucket-order setter and its unconditional throw, so #112942 is the only piece still missing. Until it lands that setter is inert, because Measured on Two points need you. 1. The automation will not resume on its own. Merging my PR instead also works, but then the 26.7-facing PR has to be created by hand, and it blocks the route above because #113810's diff becomes empty afterwards. Either way the squash onto 26.7 needs one further resolution over #118802, which rewrote the same region: keep #118802's 2. #112942's 04606 cannot run on 26.7 in its upstream form. The outer query prunes the aggregate, so the shard-side fragment has no aggregate-state column, CREATE TABLE t (x UInt64, y UInt64) ENGINE = MergeTree ORDER BY x;
INSERT INTO t SELECT number % 200000, number FROM numbers_mt(400000);
CREATE TABLE d AS t ENGINE = Distributed('test_cluster_two_shard_three_replicas_localhost', currentDatabase(), t);
SELECT count() - uniqExact(x) FROM (SELECT x, sum(y) FROM d GROUP BY x)
SETTINGS enable_parallel_replicas = 1, max_parallel_replicas = 3, parallel_replicas_plan_based = 1,
parallel_replicas_for_non_replicated_merge_tree = 1, prefer_localhost_replica = 0;
-- Logical error: 'Chunk should have AggregatedChunkInfo in MergingAggregatedTransform.'Master fixed that in #111063 ( If you would rather the original authors finish their own cherry-pick, tell me and I will link theirs and stand down. |
Original pull-request #119680
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.12