ClickHouse/tests/queries/0_stateless/00529_orantius.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
718 B
MySQL
Raw Normal View History

2017-12-09 14:22:49 +00:00
SELECT toNullable(NULL);
SELECT [toNullable(NULL)];
SELECT CAST(1 AS Nullable(UInt8));
SELECT CAST(materialize(1) AS Nullable(UInt8));
SELECT [[1], [-1]];
SELECT groupArray(NULL);
SELECT [1, 2, 3][toInt8(1)];
select arrayReduce('sumMerge', [sumState(y)]), finalizeAggregation(sumState(y)) from (select toNullable(42) as y);
SELECT arrayConcat([NULL, ''], [''], [NULL]);
SELECT CAST(NULL AS Nullable(UUID));
SELECT arrayMap(x -> substring('abc', x), [1, 2, 3]);
select 1 as x where 1 as x;
select 1 from (select 1) having count() > 0 as x;
select a.1-1 FROM (SELECT (1, 2) AS a);
select a.1-1,a.1+1 FROM (SELECT (1, 2) AS a);
SELECT defaultValueOfArgumentType([1])[1];
SELECT groupArrayInsertAt([2, 2], 10)([1, 1], 2);