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 e92582f658a..c87bc8672e5 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 @@ -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 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 dc0f3f96f98..d52c8de271d 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 @@ -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;