should be it
This commit is contained in:
33
external/duckdb/benchmark/tpch/union/ungrouped_aggregate_union.benchmark
vendored
Normal file
33
external/duckdb/benchmark/tpch/union/ungrouped_aggregate_union.benchmark
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# name: benchmark/tpch/union/ungrouped_aggregate_union.benchmark
|
||||
# description: Ungrouped aggregates split over separate unions
|
||||
# group: [union]
|
||||
|
||||
include benchmark/tpch/tpch_load.benchmark.in
|
||||
|
||||
name Lineitem Union Ungrouped Aggregate
|
||||
group union
|
||||
subgroup tpch
|
||||
|
||||
run
|
||||
SELECT sum(l_quantity) AS sum FROM lineitem WHERE l_shipdate <= CAST('1998-09-02' AS date)
|
||||
UNION ALL
|
||||
SELECT sum(l_extendedprice) FROM lineitem WHERE l_shipdate <= CAST('1998-09-02' AS date)
|
||||
UNION ALL
|
||||
SELECT sum(l_extendedprice * (1 - l_discount)) FROM lineitem WHERE l_shipdate <= CAST('1998-09-02' AS date)
|
||||
UNION ALL
|
||||
SELECT sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) FROM lineitem WHERE l_shipdate <= CAST('1998-09-02' AS date)
|
||||
UNION ALL
|
||||
SELECT avg(l_quantity) FROM lineitem WHERE l_shipdate <= CAST('1998-09-02' AS date)
|
||||
UNION ALL
|
||||
SELECT avg(l_extendedprice) FROM lineitem WHERE l_shipdate <= CAST('1998-09-02' AS date)
|
||||
UNION ALL
|
||||
SELECT count(*) FROM lineitem WHERE l_shipdate <= CAST('1998-09-02' AS date)
|
||||
|
||||
result I sf=1
|
||||
150921317.0
|
||||
226343830189.75
|
||||
215030862295.13
|
||||
223635377438.35
|
||||
25.50815444231315
|
||||
38255.78448632836
|
||||
5916591.0
|
||||
Reference in New Issue
Block a user