2017-02-20 21:57:39 +00:00
|
|
|
-- Not found column date in block. There are only columns: x.
|
2017-05-04 19:40:51 +00:00
|
|
|
drop table if exists test.partition_428;
|
2017-02-20 21:57:39 +00:00
|
|
|
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;
|