Skip to main content

Sleep

Sleeps seconds seconds on each data block.

!!! warning Only used for testing where sleep is required.

Syntax

sleep(seconds)

Arguments

ArgumentsDescription
secondsMust be a constant column of any nonnegative number or float.|

Return Type

UInt8

Examples

SELECT sleep(2);
+----------+
| sleep(2) |
+----------+
| 0 |
+----------+

SELECT sleep(2.7);
+------------+
| sleep(2.7) |
+------------+
| 0 |
+------------+