ClickHouse/tests/queries/0_stateless/01643_system_suspend.sql
2021-01-07 22:19:33 +03:00

6 lines
164 B
SQL

CREATE TEMPORARY TABLE t (x DateTime);
INSERT INTO t VALUES (now());
SYSTEM SUSPEND FOR 1 SECOND;
INSERT INTO t VALUES (now());
SELECT max(x) - min(x) >= 1 FROM t;