ClickHouse/tests/queries/0_stateless/00904_array_with_constant_2.sql

5 lines
253 B
MySQL
Raw Normal View History

2019-02-09 21:18:33 +00:00
SELECT arrayWithConstant(3, number) FROM numbers(10);
SELECT arrayWithConstant(number, 'Hello') FROM numbers(10);
SELECT arrayWithConstant(number % 3, number % 2 ? 'Hello' : NULL) FROM numbers(10);
SELECT arrayWithConstant(number, []) FROM numbers(10);