Update 01592_long_window_functions1.sql

This commit is contained in:
Alexander Kuzmenkov 2021-03-01 16:06:44 +03:00 committed by GitHub
parent 2ebae14f12
commit 366fba4b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ----';