mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
TraceLog - add tests for event_time_microseconds
This commit is contained in:
parent
b3c5aaff9e
commit
c6b5ef1174
@ -1,2 +1,4 @@
|
||||
01473_metric_log_table_event_start_time_microseconds_test
|
||||
ok
|
||||
01473_trace_log_table_event_start_time_microseconds_test
|
||||
ok
|
||||
|
@ -22,3 +22,20 @@ WITH (
|
||||
LIMIT 1
|
||||
) AS time)
|
||||
SELECT if(dateDiff('second', toDateTime(time_with_microseconds), toDateTime(time)) = 0, 'ok', 'fail')
|
||||
|
||||
select '01473_trace_log_table_event_start_time_microseconds_test';
|
||||
system flush logs;
|
||||
WITH (
|
||||
(
|
||||
SELECT event_time_microseconds
|
||||
FROM system.trace_log
|
||||
ORDER BY event_time DESC
|
||||
LIMIT 1
|
||||
) AS time_with_microseconds,
|
||||
(
|
||||
SELECT event_time
|
||||
FROM system.trace_log
|
||||
ORDER BY event_time DESC
|
||||
LIMIT 1
|
||||
) AS time)
|
||||
SELECT if(dateDiff('second', toDateTime(time_with_microseconds), toDateTime(time)) = 0, 'ok', 'fail'); -- success
|
||||
|
Loading…
Reference in New Issue
Block a user