ClickHouse/tests/queries/0_stateless/02356_insert_query_log_metrics.sql

4 lines
461 B
MySQL
Raw Normal View History

CREATE TABLE 02356_destination (a Int64, b String) ENGINE = Memory;
INSERT INTO 02356_destination (a, b) SELECT * FROM generateRandom('a Int64, b String') LIMIT 100 SETTINGS max_threads=1, max_block_size=100;
2022-07-14 16:30:59 +00:00
SELECT read_rows = written_rows, read_rows = result_rows, read_bytes = written_bytes, read_bytes = result_bytes FROM system.query_log where normalized_query_hash = 1214411238725380014 and type='QueryFinish' order by event_time desc limit 1 FORMAT CSV;