ClickHouse/tests/queries/0_stateless/01710_projection_array_join.sql
2022-02-04 14:31:58 +03:00

13 lines
300 B
SQL

-- Tags: no-s3-storage
set allow_experimental_projection_optimization = 1;
drop table if exists x;
create table x (pk int, arr Array(int), projection p (select arr order by pk)) engine MergeTree order by tuple();
insert into x values (1, [2]);
select a from x array join arr as a;
drop table x;