ClickHouse/tests/queries/0_stateless/02372_now_in_block.sql
Alexey Milovidov 63e586d17a Adjust tests
2024-07-24 09:57:56 +02:00

6 lines
344 B
SQL

SET max_rows_to_read = 0, max_bytes_to_read = 0;
SELECT count() FROM (SELECT DISTINCT nowInBlock(), nowInBlock('Pacific/Pitcairn') FROM system.numbers LIMIT 2);
SELECT nowInBlock(1); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT nowInBlock(NULL) IS NULL;
SELECT nowInBlock('UTC', 'UTC'); -- { serverError TOO_MANY_ARGUMENTS_FOR_FUNCTION }