mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
12 lines
347 B
SQL
12 lines
347 B
SQL
drop table if exists t;
|
|
|
|
create table t (a Int) engine = MergeTree order by a;
|
|
|
|
-- some magic to satisfy conditions to run optimizations in MergeTreeRangeReader
|
|
insert into t select number < 20 ? 0 : 1 from numbers(50);
|
|
alter table t add column s String default 'foo';
|
|
|
|
select s from t prewhere a != 1 where rand() % 2 = 0 limit 1;
|
|
|
|
drop table t;
|