mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Update 01592_long_window_functions1.sql
This commit is contained in:
parent
2ebae14f12
commit
366fba4b04
@ -1,6 +1,7 @@
|
||||
drop table if exists stack;
|
||||
|
||||
set allow_experimental_window_functions = 1;
|
||||
set max_insert_threads = 4;
|
||||
|
||||
create table stack(item_id Int64, brand_id Int64, rack_id Int64, dt DateTime, expiration_dt DateTime, quantity UInt64)
|
||||
Engine = MergeTree
|
||||
@ -10,7 +11,7 @@ order by (brand_id, toStartOfHour(dt));
|
||||
insert into stack
|
||||
select number%99991, number%11, number%1111, toDateTime('2020-01-01 00:00:00')+number/100,
|
||||
toDateTime('2020-02-01 00:00:00')+number/10, intDiv(number,100)+1
|
||||
from numbers(10000000);
|
||||
from numbers_mt(10000000);
|
||||
|
||||
select '---- arrays ----';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user