ClickHouse/tests/queries/0_stateless/03144_alter_column_and_read.sql
2024-05-08 16:50:42 +00:00

12 lines
349 B
SQL

drop table if exists tab;
create table tab (x UInt32) engine = MergeTree order by tuple();
insert into tab select number from numbers(10);
set alter_sync = 0;
alter table tab update x = x + sleepEachRow(0.1) where 1;
alter table tab modify column x String;
alter table tab add column y String default x || '_42';
select x, y from tab order by x;