ClickHouse/tests/queries/0_stateless/02891_empty_tuple.sql

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

28 lines
637 B
MySQL
Raw Normal View History

2023-09-27 13:28:26 +00:00
drop table if exists x;
create table x engine MergeTree order by () as select () as a, () as b;
insert into x values ((), ());
select count() from x;
select * from x order by ();
select ();
drop table x;
2023-09-27 17:04:02 +00:00
drop table if exists x;
create table x (i Nullable(Tuple())) engine MergeTree order by (); -- { serverError 43 }
create table x (i LowCardinality(Tuple())) engine MergeTree order by (); -- { serverError 43 }
create table x (i Tuple(), j Array(Tuple())) engine MergeTree order by ();
2023-09-28 03:54:59 +00:00
insert into x values ((), [(), ()]), ((), []);
2023-09-27 17:04:02 +00:00
select count() from x;
2023-09-28 03:54:59 +00:00
select * from x order by () settings max_threads = 1;
2023-09-27 17:04:02 +00:00
drop table x;