mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
12 lines
277 B
MySQL
12 lines
277 B
MySQL
|
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;
|