mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Cover Settings in query_log with non default log_queries_min_type
This commit is contained in:
parent
249ceec61b
commit
082dbea039
@ -3,3 +3,4 @@
|
|||||||
01231_log_queries_min_type/EXCEPTION_BEFORE_START
|
01231_log_queries_min_type/EXCEPTION_BEFORE_START
|
||||||
0
|
0
|
||||||
1
|
1
|
||||||
|
1
|
||||||
|
@ -9,7 +9,18 @@ select '01231_log_queries_min_type/EXCEPTION_BEFORE_START';
|
|||||||
system flush logs;
|
system flush logs;
|
||||||
select count() from system.query_log where query like '%01231_log_queries_min_type/EXCEPTION_BEFORE_START%' and query not like '%system.query_log%' and event_date = today() and event_time >= now() - interval 1 minute;
|
select count() from system.query_log where query like '%01231_log_queries_min_type/EXCEPTION_BEFORE_START%' and query not like '%system.query_log%' and event_date = today() and event_time >= now() - interval 1 minute;
|
||||||
|
|
||||||
|
set max_rows_to_read='100K';
|
||||||
set log_queries_min_type='EXCEPTION_WHILE_PROCESSING';
|
set log_queries_min_type='EXCEPTION_WHILE_PROCESSING';
|
||||||
select '01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING', max(number) from system.numbers limit 1e6 settings max_rows_to_read='100K'; -- { serverError 158; }
|
select '01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING', max(number) from system.numbers limit 1e6; -- { serverError 158; }
|
||||||
system flush logs;
|
system flush logs;
|
||||||
select count() from system.query_log where query like '%01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING%' and query not like '%system.query_log%' and event_date = today() and event_time >= now() - interval 1 minute and type = 'ExceptionWhileProcessing';
|
select count() from system.query_log where query like '%01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING%' and query not like '%system.query_log%' and event_date = today() and event_time >= now() - interval 1 minute and type = 'ExceptionWhileProcessing';
|
||||||
|
|
||||||
|
select '01231_log_queries_min_type w/ Settings/EXCEPTION_WHILE_PROCESSING', max(number) from system.numbers limit 1e6; -- { serverError 158; }
|
||||||
|
system flush logs;
|
||||||
|
select count() from system.query_log where
|
||||||
|
query like '%01231_log_queries_min_type w/ Settings/EXCEPTION_WHILE_PROCESSING%' and
|
||||||
|
query not like '%system.query_log%' and
|
||||||
|
event_date = today() and
|
||||||
|
event_time >= now() - interval 1 minute and
|
||||||
|
type = 'ExceptionWhileProcessing' and
|
||||||
|
has(Settings.Names, 'max_rows_to_read');
|
||||||
|
Loading…
Reference in New Issue
Block a user