From fb28f916f5421b65905da2c2371418d55da8ca6b Mon Sep 17 00:00:00 2001 From: Pavel Kruglov <48961922+Avogar@users.noreply.github.com> Date: Mon, 12 May 2025 10:19:35 +0000 Subject: [PATCH] Merge pull request #79844 from wxybear/fix_object_storage_cluster_wrong_count fix: ObjectStorageCluster table function return wrong count() after applyTrivialCount optimized --- tests/integration/test_storage_iceberg/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/test_storage_iceberg/test.py b/tests/integration/test_storage_iceberg/test.py index 7314ec9f6ac9..2b4e71291dfe 100644 --- a/tests/integration/test_storage_iceberg/test.py +++ b/tests/integration/test_storage_iceberg/test.py @@ -849,6 +849,8 @@ def make_query_from_table(alt_syntax=False): count_secondary_subqueries(started_cluster, query_id_pure_table_engine_with_type_in_nc, 0, "table engine with storage type in named collection") count_secondary_subqueries(started_cluster, query_id_pure_table_engine_cluster_with_type_in_nc, 1, "table engine with cluster setting with storage type in named collection") + # write 3 times + assert int(instance.query(f"SELECT count() FROM {table_function_expr_cluster}")) == 100 * 3 @pytest.mark.parametrize("format_version", ["1", "2"]) @pytest.mark.parametrize("storage_type", ["s3", "azure", "local"])