From ddefb89d86d9cdf86cc0ce55e5b3902ec208583d Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Fri, 1 May 2020 23:13:18 +0300 Subject: [PATCH] Update 00154_avro.sql --- tests/queries/1_stateful/00154_avro.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/queries/1_stateful/00154_avro.sql b/tests/queries/1_stateful/00154_avro.sql index 4a04970e250..b3c80f657c9 100644 --- a/tests/queries/1_stateful/00154_avro.sql +++ b/tests/queries/1_stateful/00154_avro.sql @@ -3,9 +3,9 @@ DROP TABLE IF EXISTS test.avro; SET max_threads = 1, max_block_size = 8192, min_insert_block_size_rows = 8192, min_insert_block_size_bytes = 1048576; -- lower memory usage CREATE TABLE test.avro AS test.hits ENGINE = File(Avro); -INSERT INTO test.avro SELECT * FROM test.hits WHERE intHash64(WatchID) % 100 = 0; +INSERT INTO test.avro SELECT * FROM test.hits LIMIT 10000; -SELECT sum(cityHash64(*)) FROM test.hits WHERE intHash64(WatchID) % 100 = 0; +SELECT sum(cityHash64(*)) FROM (SELECT * FROM test.hits LIMIT 10000); SELECT sum(cityHash64(*)) FROM test.avro; DROP TABLE test.avro;