From 3f086deb91112f1fcea537db44341cd8b9356a81 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Wed, 11 Nov 2020 02:42:16 +0300 Subject: [PATCH] Update 01560_crash_in_agg_empty_arglist.sql --- .../queries/0_stateless/01560_crash_in_agg_empty_arglist.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/queries/0_stateless/01560_crash_in_agg_empty_arglist.sql b/tests/queries/0_stateless/01560_crash_in_agg_empty_arglist.sql index 951cb3ca81b..57dec2253d6 100644 --- a/tests/queries/0_stateless/01560_crash_in_agg_empty_arglist.sql +++ b/tests/queries/0_stateless/01560_crash_in_agg_empty_arglist.sql @@ -1 +1,5 @@ +-- make sure the system.query_log table is created +SELECT 1; +SYSTEM FLUSH LOGS; + SELECT any() as t, substring(query, 1, 70) AS query, avg(memory_usage) usage, count() count FROM system.query_log WHERE event_date >= toDate(1604295323) AND event_time >= toDateTime(1604295323) AND type in (1,2,3,4) and initial_user in ('') and('all' = 'all' or(positionCaseInsensitive(query, 'all') = 1)) GROUP BY query ORDER BY usage desc LIMIT 5; -- { serverError 42 }