Skip to content

Commit fb28f91

Browse files
AvogarEnmk
authored andcommitted
Merge pull request ClickHouse#79844 from wxybear/fix_object_storage_cluster_wrong_count
fix: ObjectStorageCluster table function return wrong count() after applyTrivialCount optimized
1 parent 3635c44 commit fb28f91

File tree

1 file changed

+2
-0
lines changed
  • tests/integration/test_storage_iceberg

1 file changed

+2
-0
lines changed

tests/integration/test_storage_iceberg/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,8 @@ def make_query_from_table(alt_syntax=False):
849849
count_secondary_subqueries(started_cluster, query_id_pure_table_engine_with_type_in_nc, 0, "table engine with storage type in named collection")
850850
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")
851851

852+
# write 3 times
853+
assert int(instance.query(f"SELECT count() FROM {table_function_expr_cluster}")) == 100 * 3
852854

853855
@pytest.mark.parametrize("format_version", ["1", "2"])
854856
@pytest.mark.parametrize("storage_type", ["s3", "azure", "local"])

0 commit comments

Comments
 (0)