mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Merge pull request #61246 from ClickHouse/more-output-for-test-to-debug
Print more info in `02572_system_logs_materialized_views_ignore_errors` to debug
This commit is contained in:
commit
681001418e
@ -1,2 +1,24 @@
|
|||||||
11 queryfinish OK
|
"-- Attach MV to system.query_log and check that writing query_log will not fail\n\nset log_queries=1;","querystart","OK"
|
||||||
11 querystart OK
|
"-- Attach MV to system.query_log and check that writing query_log will not fail\n\nset log_queries=1;","queryfinish","OK"
|
||||||
|
"drop table if exists log_proxy_02572;","querystart","OK"
|
||||||
|
"drop table if exists log_proxy_02572;","queryfinish","OK"
|
||||||
|
"drop table if exists push_to_logs_proxy_mv_02572;","querystart","OK"
|
||||||
|
"drop table if exists push_to_logs_proxy_mv_02572;","queryfinish","OK"
|
||||||
|
"-- create log tables\nsystem flush logs;","querystart","OK"
|
||||||
|
"-- create log tables\nsystem flush logs;","queryfinish","OK"
|
||||||
|
"create table log_proxy_02572 as system.query_log engine=Distributed('test_shard_localhost', currentDatabase(), 'receiver_02572');","querystart","OK"
|
||||||
|
"create table log_proxy_02572 as system.query_log engine=Distributed('test_shard_localhost', currentDatabase(), 'receiver_02572');","queryfinish","OK"
|
||||||
|
"create materialized view push_to_logs_proxy_mv_02572 to log_proxy_02572 as select * from system.query_log;","querystart","OK"
|
||||||
|
"create materialized view push_to_logs_proxy_mv_02572 to log_proxy_02572 as select * from system.query_log;","queryfinish","OK"
|
||||||
|
"select 1 format Null;","querystart","OK"
|
||||||
|
"select 1 format Null;","queryfinish","OK"
|
||||||
|
"system flush logs;","querystart","OK"
|
||||||
|
"system flush logs;","queryfinish","OK"
|
||||||
|
"system flush logs;","querystart","OK"
|
||||||
|
"system flush logs;","queryfinish","OK"
|
||||||
|
"drop table log_proxy_02572;","querystart","OK"
|
||||||
|
"drop table log_proxy_02572;","queryfinish","OK"
|
||||||
|
"drop table push_to_logs_proxy_mv_02572;","querystart","OK"
|
||||||
|
"drop table push_to_logs_proxy_mv_02572;","queryfinish","OK"
|
||||||
|
"set log_queries=0;","querystart","OK"
|
||||||
|
"set log_queries=0;","queryfinish","OK"
|
||||||
|
@ -21,10 +21,12 @@ system flush logs;
|
|||||||
drop table log_proxy_02572;
|
drop table log_proxy_02572;
|
||||||
drop table push_to_logs_proxy_mv_02572;
|
drop table push_to_logs_proxy_mv_02572;
|
||||||
|
|
||||||
|
set log_queries=0;
|
||||||
|
|
||||||
system flush logs;
|
system flush logs;
|
||||||
-- lower() to pass through clickhouse-test "exception" check
|
-- lower() to pass through clickhouse-test "exception" check
|
||||||
select count(), lower(type::String), errorCodeToName(exception_code)
|
select replaceAll(query, '\n', '\\n'), lower(type::String), errorCodeToName(exception_code)
|
||||||
from system.query_log
|
from system.query_log
|
||||||
where current_database = currentDatabase()
|
where current_database = currentDatabase()
|
||||||
group by 2, 3
|
order by event_time_microseconds
|
||||||
order by 2;
|
format CSV;
|
||||||
|
Loading…
Reference in New Issue
Block a user