ClickHouse/tests/queries/0_stateless/01710_projection_array_join.sql

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

12 lines
259 B
MySQL
Raw Normal View History

2023-05-10 01:35:13 +00:00
set optimize_use_projections = 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;