From 00d4ac542d5d4ce0478e02f048efa0d2b1eb0739 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 18 Sep 2022 21:49:06 +0200 Subject: [PATCH] tests: fix test_hive_query flakiness Signed-off-by: Azat Khuzhin --- tests/integration/test_hive_query/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/test_hive_query/test.py b/tests/integration/test_hive_query/test.py index b41c2dcd8a3..a498320ed5b 100644 --- a/tests/integration/test_hive_query/test.py +++ b/tests/integration/test_hive_query/test.py @@ -146,6 +146,8 @@ def test_orc_groupby(started_cluster): node = started_cluster.instances["h0_0_0"] result = node.query( """ + DROP TABLE IF EXISTS default.demo_orc; + CREATE TABLE default.demo_orc (`id` Nullable(String), `score` Nullable(Int32), `day` Nullable(String)) ENGINE = Hive('thrift://hivetest:9083', 'test', 'demo_orc') PARTITION BY(day); SELECT day, count(*) FROM default.demo_orc group by day order by day """ ) @@ -329,6 +331,8 @@ def test_text_count(started_cluster): node = started_cluster.instances["h0_0_0"] result = node.query( """ + DROP TABLE IF EXISTS default.demo_orc; + CREATE TABLE default.demo_orc (`id` Nullable(String), `score` Nullable(Int32), `day` Nullable(String)) ENGINE = Hive('thrift://hivetest:9083', 'test', 'demo_orc') PARTITION BY(day); SELECT day, count(*) FROM default.demo_orc group by day order by day SETTINGS format_csv_delimiter = '\x01' """ )