mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
added test [#CLICKHOUSE-3663]
This commit is contained in:
parent
cbfd862fa3
commit
6f60e6ee4f
@ -0,0 +1,12 @@
|
|||||||
|
drop table if exists test.table;
|
||||||
|
create table test.table (key UInt64, val UInt64) engine = MergeTree order by key settings index_granularity=8192;
|
||||||
|
insert into test.table select number, number / 8192 from system.numbers limit 100000;
|
||||||
|
alter table test.table add column def UInt64 default val + 1;
|
||||||
|
select * from test.table prewhere val > 2 format Null;
|
||||||
|
|
||||||
|
drop table if exists test.table;
|
||||||
|
create table test.table (key UInt64, val UInt64) engine = MergeTree order by key settings index_granularity=8192;
|
||||||
|
insert into test.table select number, number / 8192 from system.numbers limit 100000;
|
||||||
|
alter table test.table add column def UInt64;
|
||||||
|
select * from test.table prewhere val > 2 format Null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user