should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# name: benchmark/tpch/pivot/lineitem_unpivot.benchmark
# description: lineitem unpivot
# group: [pivot]
include benchmark/tpch/tpch_load.benchmark.in
name Lineitem Unpivot
group pivot
subgroup tpch
run
WITH unpivoted_data AS (
UNPIVOT (SELECT l_orderkey, l_returnflag, l_shipinstruct FROM lineitem) ON l_returnflag, l_shipinstruct
)
SELECT name, value, AVG(l_orderkey) FROM unpivoted_data GROUP BY ALL ORDER BY ALL
result III sf=1
l_returnflag A 3000424.4368691635
l_returnflag N 3000145.266271816
l_returnflag R 3000411.306590167
l_shipinstruct COLLECT COD 3000543.885344478
l_shipinstruct DELIVER IN PERSON 3000377.511525631
l_shipinstruct NONE 2999474.842545817
l_shipinstruct TAKE BACK RETURN 3000722.611838043