should be it
This commit is contained in:
23
external/duckdb/benchmark/micro/window/window_streamed_sum.benchmark
vendored
Normal file
23
external/duckdb/benchmark/micro/window/window_streamed_sum.benchmark
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# name: benchmark/micro/window/window_streamed_sum.benchmark
|
||||
# description: Range join between integers
|
||||
# group: [window]
|
||||
|
||||
name Window Partition
|
||||
group window
|
||||
|
||||
load
|
||||
SELECT SETSEED(0.8675309);
|
||||
CREATE TABLE streamed AS
|
||||
SELECT exp(-random() ** 2) AS p
|
||||
FROM range(0, 10000000)
|
||||
;
|
||||
|
||||
run
|
||||
SELECT SUM(s)
|
||||
FROM (
|
||||
SELECT SUM(p) OVER(ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) s
|
||||
FROM streamed
|
||||
) tbl
|
||||
|
||||
result I
|
||||
73137822900325.6
|
||||
Reference in New Issue
Block a user