diff --git a/tests/queries/0_stateless/00753_distributed_system_columns_and_system_tables.reference b/tests/queries/0_stateless/00753_distributed_system_columns_and_system_tables.reference new file mode 100644 index 00000000000..042e79f1b80 --- /dev/null +++ b/tests/queries/0_stateless/00753_distributed_system_columns_and_system_tables.reference @@ -0,0 +1,4 @@ +Check total_bytes/total_rows for Distributed +0 \N +1 \N +0 \N diff --git a/tests/queries/0_stateless/00753_distributed_system_columns_and_system_tables.sql b/tests/queries/0_stateless/00753_distributed_system_columns_and_system_tables.sql new file mode 100644 index 00000000000..d5b4cce0dfc --- /dev/null +++ b/tests/queries/0_stateless/00753_distributed_system_columns_and_system_tables.sql @@ -0,0 +1,11 @@ +SELECT 'Check total_bytes/total_rows for Distributed'; +CREATE TABLE check_system_tables_null (key Int) Engine=Null(); +CREATE TABLE check_system_tables AS check_system_tables_null Engine=Distributed(test_shard_localhost, currentDatabase(), check_system_tables_null); +SYSTEM STOP DISTRIBUTED SENDS check_system_tables; +SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tables'; +INSERT INTO check_system_tables SELECT * FROM numbers(1) SETTINGS prefer_localhost_replica=0; +SELECT total_bytes>0, total_rows FROM system.tables WHERE name = 'check_system_tables'; +SYSTEM FLUSH DISTRIBUTED check_system_tables; +SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tables'; +DROP TABLE check_system_tables_null; +DROP TABLE check_system_tables; diff --git a/tests/queries/0_stateless/00753_system_columns_and_system_tables.reference b/tests/queries/0_stateless/00753_system_columns_and_system_tables.reference index c87bc8672e5..12af231d18c 100644 --- a/tests/queries/0_stateless/00753_system_columns_and_system_tables.reference +++ b/tests/queries/0_stateless/00753_system_columns_and_system_tables.reference @@ -45,7 +45,3 @@ Check total_bytes/total_rows for Set Check total_bytes/total_rows for Join 10240 50 10240 100 -Check total_bytes/total_rows for Distributed -0 \N -1 \N -0 \N diff --git a/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql b/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql index d52c8de271d..862e3693f0e 100644 --- a/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql +++ b/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql @@ -126,15 +126,3 @@ SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tab INSERT INTO check_system_tables SELECT number+50 FROM numbers(50); SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tables'; DROP TABLE check_system_tables; - -SELECT 'Check total_bytes/total_rows for Distributed'; -CREATE TABLE check_system_tables_null (key Int) Engine=Null(); -CREATE TABLE check_system_tables AS check_system_tables_null Engine=Distributed(test_shard_localhost, currentDatabase(), check_system_tables_null); -SYSTEM STOP DISTRIBUTED SENDS check_system_tables; -SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tables'; -INSERT INTO check_system_tables SELECT * FROM numbers(1) SETTINGS prefer_localhost_replica=0; -SELECT total_bytes>0, total_rows FROM system.tables WHERE name = 'check_system_tables'; -SYSTEM FLUSH DISTRIBUTED check_system_tables; -SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tables'; -DROP TABLE check_system_tables_null; -DROP TABLE check_system_tables; diff --git a/tests/queries/0_stateless/arcadia_skip_list.txt b/tests/queries/0_stateless/arcadia_skip_list.txt index 59f0aa37e49..8f3b4e56134 100644 --- a/tests/queries/0_stateless/arcadia_skip_list.txt +++ b/tests/queries/0_stateless/arcadia_skip_list.txt @@ -15,6 +15,7 @@ 00732_base64_functions 00746_hashing_tuples 00751_hashing_ints +00753_distributed_system_columns_and_system_tables 00800_function_java_hash 00800_low_cardinality_distributed_insert 00821_distributed_storage_with_join_on