ClickHouse/tests/queries/0_stateless/00258_materializing_tuples.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

6 lines
433 B
SQL

select * from (select tuple(1) as a union all select tuple(1) as a) order by a;
select * from (select tuple(1) as a union all select tuple(2) as a) order by a;
select * from (select tuple(materialize(0)) as a union all select tuple(0) as a) order by a;
select * from (select tuple(range(1)[1]) as a union all select tuple(0) as a) order by a;
select * from (select tuple(range(1)[2]) as a union all select tuple(1) as a) order by a;