diff --git a/tests/queries/0_stateless/03277_logging_elapsed_ns.reference b/tests/queries/0_stateless/03277_logging_elapsed_ns.reference new file mode 100644 index 00000000000..57569e954f0 --- /dev/null +++ b/tests/queries/0_stateless/03277_logging_elapsed_ns.reference @@ -0,0 +1,2 @@ +42 +1 1 diff --git a/tests/queries/0_stateless/03277_logging_elapsed_ns.sql b/tests/queries/0_stateless/03277_logging_elapsed_ns.sql new file mode 100644 index 00000000000..cff3455029c --- /dev/null +++ b/tests/queries/0_stateless/03277_logging_elapsed_ns.sql @@ -0,0 +1,9 @@ +SELECT 42 SETTINGS log_comment='03277_logging_elapsed_ns'; + +SYSTEM FLUSH LOGS; + +SELECT + ProfileEvents['LogDebug'] + ProfileEvents['LogTrace'] > 0, + ProfileEvents['LoggerElapsedNanoseconds'] > 0 +FROM system.query_log +WHERE current_database = currentDatabase() AND log_comment = '03277_logging_elapsed_ns' AND type = 'QueryFinish';