Update 01560_crash_in_agg_empty_arglist.sql

This commit is contained in:
alexey-milovidov 2020-11-11 02:42:16 +03:00 committed by GitHub
parent 9867387a5f
commit 3f086deb91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }