ClickHouse/tests/queries/0_stateless/01710_projection_with_alter_conversions.sql
Amos Bird 16578d97a3
Fix two cases of projection analysis.
1. Fix projection analysis with partitions.
2. Apply alter conversions during projection analysis.
2023-11-10 10:23:02 +08:00

16 lines
270 B
SQL

drop table if exists t;
create table t (i int, j int, projection p (select i order by i)) engine MergeTree order by tuple();
insert into t values (1, 2);
system stop merges t;
set alter_sync = 0;
alter table t rename column j to k;
select * from t;
drop table t;