less flaky test

This commit is contained in:
Alexander Kuzmenkov 2021-04-09 22:57:40 +03:00
parent 6acc92ffd9
commit ab27d8920f

View File

@ -7,6 +7,8 @@ WITH (
SELECT query_start_time_microseconds SELECT query_start_time_microseconds
FROM system.query_log FROM system.query_log
WHERE current_database = currentDatabase() WHERE current_database = currentDatabase()
AND query like 'SELECT \'01461_query%'
AND event_date >= yesterday()
ORDER BY query_start_time DESC ORDER BY query_start_time DESC
LIMIT 1 LIMIT 1
) AS time_with_microseconds, ) AS time_with_microseconds,
@ -14,6 +16,8 @@ WITH (
SELECT query_start_time SELECT query_start_time
FROM system.query_log FROM system.query_log
WHERE current_database = currentDatabase() WHERE current_database = currentDatabase()
AND query like 'SELECT \'01461_query%'
AND event_date >= yesterday()
ORDER BY query_start_time DESC ORDER BY query_start_time DESC
LIMIT 1 LIMIT 1
) AS t) ) AS t)
@ -27,6 +31,8 @@ WITH (
SELECT query_start_time_microseconds SELECT query_start_time_microseconds
FROM system.query_thread_log FROM system.query_thread_log
WHERE current_database = currentDatabase() WHERE current_database = currentDatabase()
AND query like 'SELECT \'01461_query%'
AND event_date >= yesterday()
ORDER BY query_start_time DESC ORDER BY query_start_time DESC
LIMIT 1 LIMIT 1
) AS time_with_microseconds, ) AS time_with_microseconds,
@ -34,6 +40,8 @@ WITH (
SELECT query_start_time SELECT query_start_time
FROM system.query_thread_log FROM system.query_thread_log
WHERE current_database = currentDatabase() WHERE current_database = currentDatabase()
AND query like 'SELECT \'01461_query%'
AND event_date >= yesterday()
ORDER BY query_start_time DESC ORDER BY query_start_time DESC
LIMIT 1 LIMIT 1
) AS t) ) AS t)