ClickHouse/tests/queries/0_stateless/02864_profile_event_part_lock.sql
alesapin 3a289534cb Fxi
2023-08-24 20:48:10 +02:00

17 lines
332 B
SQL

DROP TABLE IF EXISTS random_mt;
CREATE TABLE random_mt
(
key UInt64,
value String
)
ENGINE MergeTree()
ORDER BY tuple();
INSERT INTO random_mt VALUES (1, 'Hello');
SELECT any(value > 0) from system.events WHERE event = 'PartsLockHoldMicroseconds' or event = 'PartsLockWaitMicroseconds';
DROP TABLE IF EXISTS random_mt;