mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-08 15:31:57 +00:00
16578d97a3
1. Fix projection analysis with partitions. 2. Apply alter conversions during projection analysis.
16 lines
270 B
SQL
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;
|