tests: Use total_bytes>0 for Distributed engine in 00753_system_columns_and_system_tables

This commit is contained in:
Azat Khuzhin 2021-01-27 00:44:08 +03:00
parent 70049db143
commit 3102835d56
2 changed files with 2 additions and 2 deletions

View File

@ -47,5 +47,5 @@ Check total_bytes/total_rows for Join
10240 100
Check total_bytes/total_rows for Distributed
0 \N
581 \N
1 \N
0 \N

View File

@ -133,7 +133,7 @@ CREATE TABLE check_system_tables AS check_system_tables_null Engine=Distributed(
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, total_rows FROM system.tables WHERE name = 'check_system_tables';
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;