tests: split 00753_system_columns_and_system_tables (to disable Distributed part for arcadia)

This commit is contained in:
Azat Khuzhin 2021-01-27 07:58:02 +03:00
parent 3102835d56
commit cabe4ca1bb
5 changed files with 16 additions and 16 deletions

View File

@ -0,0 +1,4 @@
Check total_bytes/total_rows for Distributed
0 \N
1 \N
0 \N

View File

@ -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;

View File

@ -45,7 +45,3 @@ Check total_bytes/total_rows for Set
Check total_bytes/total_rows for Join Check total_bytes/total_rows for Join
10240 50 10240 50
10240 100 10240 100
Check total_bytes/total_rows for Distributed
0 \N
1 \N
0 \N

View File

@ -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); INSERT INTO check_system_tables SELECT number+50 FROM numbers(50);
SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tables'; SELECT total_bytes, total_rows FROM system.tables WHERE name = 'check_system_tables';
DROP TABLE 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;

View File

@ -15,6 +15,7 @@
00732_base64_functions 00732_base64_functions
00746_hashing_tuples 00746_hashing_tuples
00751_hashing_ints 00751_hashing_ints
00753_distributed_system_columns_and_system_tables
00800_function_java_hash 00800_function_java_hash
00800_low_cardinality_distributed_insert 00800_low_cardinality_distributed_insert
00821_distributed_storage_with_join_on 00821_distributed_storage_with_join_on