From 02bc1e6e805492b563db71f16021c83693c1d3f2 Mon Sep 17 00:00:00 2001 From: robot-clickhouse Date: Tue, 26 Nov 2024 16:10:27 +0000 Subject: [PATCH] Backport #71931 to 24.10: Fix flaky test 03262_column_sizes_with_dynamic_structure --- ...03262_column_sizes_with_dynamic_structure.reference | 2 +- .../03262_column_sizes_with_dynamic_structure.sql | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.reference b/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.reference index 5cab16ed96d..5e30d36d620 100644 --- a/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.reference +++ b/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.reference @@ -1 +1 @@ -test 10.00 million 352.87 MiB 39.43 MiB 39.45 MiB +test 10000000 352 39 39 diff --git a/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.sql b/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.sql index 099bbd5dd22..931990d582f 100644 --- a/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.sql +++ b/tests/queries/0_stateless/03262_column_sizes_with_dynamic_structure.sql @@ -1,4 +1,4 @@ --- Tags: no-random-settings +-- Tags: no-random-settings, no-fasttest set allow_experimental_dynamic_type = 1; set allow_experimental_json_type = 1; @@ -10,10 +10,10 @@ insert into test select number, '{"a" : 42, "b" : "Hello, World"}' from numbers( SELECT `table`, - formatReadableQuantity(sum(rows)) AS rows, - formatReadableSize(sum(data_uncompressed_bytes)) AS data_size_uncompressed, - formatReadableSize(sum(data_compressed_bytes)) AS data_size_compressed, - formatReadableSize(sum(bytes_on_disk)) AS total_size_on_disk + sum(rows) AS rows, + floor(sum(data_uncompressed_bytes) / (1024 * 1024)) AS data_size_uncompressed, + floor(sum(data_compressed_bytes) / (1024 * 1024)) AS data_size_compressed, + floor(sum(bytes_on_disk) / (1024 * 1024)) AS total_size_on_disk FROM system.parts WHERE active AND (database = currentDatabase()) AND (`table` = 'test') GROUP BY `table`