From a21f85a4852dd3000b95bbe907a5f6da668f9a1d Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Wed, 15 Jul 2026 09:07:25 -0300 Subject: [PATCH 1/7] Enable allow_local_data_lakes in 04340_datalake_schema_deep_recursion test Signed-off-by: CarlosFelipeOR --- .../0_stateless/04340_datalake_schema_deep_recursion.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/queries/0_stateless/04340_datalake_schema_deep_recursion.sh b/tests/queries/0_stateless/04340_datalake_schema_deep_recursion.sh index d52cda07da27..37851d627e3a 100755 --- a/tests/queries/0_stateless/04340_datalake_schema_deep_recursion.sh +++ b/tests/queries/0_stateless/04340_datalake_schema_deep_recursion.sh @@ -46,7 +46,8 @@ PYEOF # allow_experimental_delta_kernel_rs=0 selects the C++ metadata parser (the Rust kernel has its own # recursion limit). The deep schema must be rejected with a JSON exception, not crash the process. -$CLICKHOUSE_LOCAL --query "DESCRIBE TABLE deltaLakeLocal('$TMP_DIR/dl') SETTINGS allow_experimental_delta_kernel_rs=0 FORMAT Null" 2>&1 \ +# allow_local_data_lakes=1 lifts the Altinity guard that otherwise disables the *Local table functions. +$CLICKHOUSE_LOCAL --query "DESCRIBE TABLE deltaLakeLocal('$TMP_DIR/dl') SETTINGS allow_experimental_delta_kernel_rs=0, allow_local_data_lakes=1 FORMAT Null" 2>&1 \ | expect_contains delta_depth JSONException # Iceberg parses the whole metadata JSON with Poco before any field validation, so a deeply nested @@ -58,5 +59,5 @@ N = 2000 open('$TMP_DIR/ice/metadata/v1.metadata.json', 'wb').write(b'{' + b'\"a\":{' * N + b'\"x\":1' + b'}' * N + b'}') open('$TMP_DIR/ice/metadata/version-hint.text', 'w').write('1') " -$CLICKHOUSE_LOCAL --query "DESCRIBE TABLE icebergLocal('$TMP_DIR/ice') FORMAT Null" 2>&1 \ +$CLICKHOUSE_LOCAL --query "DESCRIBE TABLE icebergLocal('$TMP_DIR/ice') SETTINGS allow_local_data_lakes=1 FORMAT Null" 2>&1 \ | expect_contains iceberg_depth JSONException From ef49ac074d1a1721d0c66b1957d0ef93779ce32f Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Wed, 15 Jul 2026 10:34:59 -0300 Subject: [PATCH 2/7] Skip 04299 constraint correlated subquery test under parallel replicas Signed-off-by: CarlosFelipeOR --- .../04299_constraint_subst_correlated_subquery_root.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql b/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql index 129409c5e2e7..2deab3c37925 100644 --- a/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql +++ b/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql @@ -1,3 +1,6 @@ +-- Tags: no-parallel-replicas +-- Tag no-parallel-replicas: decorrelation can't clone ReadFromPreparedSource on 25.8 (NOT_IMPLEMENTED). See Altinity/ClickHouse#2051. + -- Constraint reduction can collapse a filter into a bare correlated subquery -- (here `b < d` is always false given the constraint, leaving only the subquery). -- A correlated subquery used as a whole predicate cannot be decorrelated, so the From 40121cd5bca5fff34b0761308da4dbfd794563cf Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Wed, 15 Jul 2026 11:46:21 -0300 Subject: [PATCH 3/7] Skip 04326_parquet_v3_geoparquet_wkb_alloc test under ubsan Signed-off-by: CarlosFelipeOR --- .../0_stateless/04326_parquet_v3_geoparquet_wkb_alloc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/04326_parquet_v3_geoparquet_wkb_alloc.sh b/tests/queries/0_stateless/04326_parquet_v3_geoparquet_wkb_alloc.sh index ab20e680abd3..48d84da9acee 100755 --- a/tests/queries/0_stateless/04326_parquet_v3_geoparquet_wkb_alloc.sh +++ b/tests/queries/0_stateless/04326_parquet_v3_geoparquet_wkb_alloc.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# Tags: no-fasttest +# Tags: no-fasttest, no-ubsan # no-fasttest: needs pyarrow to write the GeoParquet file. +# no-ubsan: memory tracking isn't reliably enforced in the standalone UBSan build (jemalloc off), so the oversized reserve isn't rejected. See Altinity/ClickHouse#2049. # Regression test for an untracked-allocation DoS in the Parquet V3 GeoParquet (WKB) reader. # The WKB reader took an element count straight off the wire and `reserve`d a std::vector of that From 26d77a7da330d991bcf03025068154a5062bb467 Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Wed, 15 Jul 2026 21:27:37 -0300 Subject: [PATCH 4/7] Backport no-old-analyzer tag support to clickhouse-test (fixes 04409/04410) Signed-off-by: CarlosFelipeOR --- tests/clickhouse-test | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/clickhouse-test b/tests/clickhouse-test index b0003e1403e8..6edf78412bc9 100755 --- a/tests/clickhouse-test +++ b/tests/clickhouse-test @@ -966,6 +966,7 @@ class FailureReason(enum.Enum): NO_STATEFUL = "no-stateful" NO_OPENSSL_FIPS = "no-openssl-fips" ENCRYPTED_STORAGE = "encrypted-storage" + OLD_ANALYZER = "old-analyzer" # UNKNOWN reasons NO_REFERENCE = "no reference file" @@ -1548,6 +1549,9 @@ class TestCase: if "no-parallel-replicas" in tags and args.no_parallel_replicas: return FailureReason.NO_PARALLEL_REPLICAS + if "no-old-analyzer" in tags and is_old_analyzer_used(args): + return FailureReason.OLD_ANALYZER + if "no-async-insert" in tags and args.no_async_insert: return FailureReason.NO_ASYNC_INSERT From 633669f55f4d6a9940fad59aa4bc530aee1156e3 Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Wed, 15 Jul 2026 22:42:12 -0300 Subject: [PATCH 5/7] Mark 01710_projection_additional_filters broken on ParallelReplicas (see #2054) Signed-off-by: CarlosFelipeOR --- tests/broken_tests.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/broken_tests.yaml b/tests/broken_tests.yaml index bee198adec31..2d0694b40409 100644 --- a/tests/broken_tests.yaml +++ b/tests/broken_tests.yaml @@ -186,6 +186,11 @@ message: 'Not found column __table1.' check_types: - DatabaseReplicated +- name: 01710_projection_additional_filters + reason: 'KNOWN: Upstream issue ClickHouse#104219; fixed upstream ClickHouse#104296, not backported to 25.8. See Altinity/ClickHouse#2054.' + message: result differs with reference + check_types: + - ParallelReplicas # Regex rules should be ordered from most specific to least specific. # regex: true applies to name, message, and not_message fields, but not to reason or check_types fields. From b2dba682f6a53bac3c1672667f83d2e341795c87 Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Fri, 17 Jul 2026 12:08:23 -0300 Subject: [PATCH 6/7] Revert "Skip 04299 constraint correlated subquery test under parallel replicas" This reverts commit ef49ac074d1a1721d0c66b1957d0ef93779ce32f. --- .../04299_constraint_subst_correlated_subquery_root.sql | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql b/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql index 2deab3c37925..129409c5e2e7 100644 --- a/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql +++ b/tests/queries/0_stateless/04299_constraint_subst_correlated_subquery_root.sql @@ -1,6 +1,3 @@ --- Tags: no-parallel-replicas --- Tag no-parallel-replicas: decorrelation can't clone ReadFromPreparedSource on 25.8 (NOT_IMPLEMENTED). See Altinity/ClickHouse#2051. - -- Constraint reduction can collapse a filter into a bare correlated subquery -- (here `b < d` is always false given the constraint, leaving only the subquery). -- A correlated subquery used as a whole predicate cannot be decorrelated, so the From bbefc427185e880b3f3fbe85c4ec139e0a1e7a3d Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Fri, 17 Jul 2026 12:08:28 -0300 Subject: [PATCH 7/7] Revert "Mark 01710_projection_additional_filters broken on ParallelReplicas (see #2054)" This reverts commit 633669f55f4d6a9940fad59aa4bc530aee1156e3. --- tests/broken_tests.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/broken_tests.yaml b/tests/broken_tests.yaml index 2d0694b40409..bee198adec31 100644 --- a/tests/broken_tests.yaml +++ b/tests/broken_tests.yaml @@ -186,11 +186,6 @@ message: 'Not found column __table1.' check_types: - DatabaseReplicated -- name: 01710_projection_additional_filters - reason: 'KNOWN: Upstream issue ClickHouse#104219; fixed upstream ClickHouse#104296, not backported to 25.8. See Altinity/ClickHouse#2054.' - message: result differs with reference - check_types: - - ParallelReplicas # Regex rules should be ordered from most specific to least specific. # regex: true applies to name, message, and not_message fields, but not to reason or check_types fields.