ClickHouse/tests/queries/0_stateless/02125_query_views_log.reference

25 lines
803 B
Plaintext
Raw Normal View History

2021-11-25 18:06:57 +00:00
-- { echo }
select view_name, read_rows, read_bytes, written_rows, written_bytes from system.query_views_log where startsWith(view_name, currentDatabase() || '.mv') order by view_name format Vertical;
Row 1:
──────
view_name: default.mv1
read_rows: 1000000
read_bytes: 4000000
written_rows: 1000000
written_bytes: 4000000
Row 2:
──────
view_name: default.mv2
read_rows: 1000000
read_bytes: 4000000
written_rows: 1000000
written_bytes: 4000000
select read_rows, read_bytes, written_rows, written_bytes from system.query_log where type = 'QueryFinish' and query_kind = 'Insert' and current_database = currentDatabase() format Vertical;
Row 1:
──────
read_rows: 3000000
read_bytes: 16000000
2021-11-25 18:06:57 +00:00
written_rows: 3000000
written_bytes: 12000000