ClickHouse/tests/queries/0_stateless/01118_is_constant.sql

11 lines
329 B
MySQL
Raw Normal View History

2020-04-12 01:24:00 +00:00
select isConstant(1);
select isConstant([1]);
select isConstant(arrayJoin([1]));
SELECT isConstant((SELECT 1));
SELECT isConstant(x) FROM (SELECT 1 x);
SELECT '---';
SELECT isConstant(x) FROM (SELECT 1 x UNION ALL SELECT 2);
SELECT '---';
select isConstant(); -- { serverError 42 }
select isConstant(1, 2); -- { serverError 42 }