mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
10 lines
563 B
SQL
10 lines
563 B
SQL
-- Not found column date in block. There are only columns: x.
|
|
drop table if exists test.partition_428;
|
|
create table test.partition_428 (date MATERIALIZED toDate(0), x UInt64, sample_key MATERIALIZED intHash64(x)) ENGINE=MergeTree(date,sample_key,(date,x,sample_key),8192);
|
|
insert into test.partition_428 ( x ) VALUES ( now() );
|
|
insert into test.partition_428 ( x ) VALUES ( now()+1 );
|
|
alter table test.partition_428 detach partition 197001;
|
|
alter table test.partition_428 attach partition 197001;
|
|
optimize table test.partition_428;
|
|
drop table test.partition_428;
|