2020-09-06 02:49:47 +00:00
|
|
|
-- This file contains tests for the event_time_microseconds field for various tables.
|
|
|
|
-- Note: Only event_time_microseconds for asynchronous_metric_log table is tested via
|
|
|
|
-- an integration test as those metrics take 60s by default to be updated.
|
|
|
|
-- Refer: tests/integration/test_asynchronous_metric_log_table.
|
2020-09-05 23:17:28 +00:00
|
|
|
|
2020-09-06 02:49:47 +00:00
|
|
|
set log_queries = 1;
|
2020-09-05 23:21:51 +00:00
|
|
|
|
2020-09-06 02:49:47 +00:00
|
|
|
select '01473_metric_log_table_event_start_time_microseconds_test';
|
2020-09-05 23:21:51 +00:00
|
|
|
system flush logs;
|
2020-09-06 02:49:47 +00:00
|
|
|
SELECT sleep(3) Format Null;
|
2020-09-05 23:21:51 +00:00
|
|
|
SELECT If((select count(event_time_microseconds) from system.metric_log) > 0, 'ok', 'fail'); -- success
|