should be it
This commit is contained in:
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct.benchmark
vendored
Normal file
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct.benchmark
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# name: benchmark/tpch/struct/tpch_q1_struct.benchmark
|
||||
# description: Run Q01 over lineitem stored in structs
|
||||
# group: [struct]
|
||||
|
||||
name Q01 Structs
|
||||
group tpch
|
||||
subgroup sf1
|
||||
|
||||
require tpch
|
||||
|
||||
load
|
||||
CALL dbgen(sf=1, suffix='_normalized');
|
||||
CREATE TABLE lineitem_struct AS SELECT lineitem_normalized AS struct_val FROM lineitem_normalized;
|
||||
CREATE VIEW lineitem AS SELECT UNNEST(struct_val) FROM lineitem_struct;
|
||||
|
||||
run extension/tpch/dbgen/queries/q01.sql
|
||||
|
||||
result extension/tpch/dbgen/answers/sf1/q01.csv
|
||||
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct_nested.benchmark
vendored
Normal file
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct_nested.benchmark
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# name: benchmark/tpch/struct/tpch_q1_struct_nested.benchmark
|
||||
# description: Run Q01 over lineitem stored in nested structs
|
||||
# group: [struct]
|
||||
|
||||
name Q01 Structs
|
||||
group tpch
|
||||
subgroup sf1
|
||||
|
||||
require tpch
|
||||
|
||||
load
|
||||
CALL dbgen(sf=1, suffix='_normalized');
|
||||
CREATE TABLE lineitem_struct AS SELECT {'id': rowid, 'values': lineitem_normalized} AS struct_val FROM lineitem_normalized;
|
||||
CREATE VIEW lineitem AS SELECT UNNEST(struct_val, recursive := true) FROM lineitem_struct;
|
||||
|
||||
run extension/tpch/dbgen/queries/q01.sql
|
||||
|
||||
result extension/tpch/dbgen/answers/sf1/q01.csv
|
||||
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct_nested_parquet.benchmark
vendored
Normal file
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct_nested_parquet.benchmark
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# name: benchmark/tpch/struct/tpch_q1_struct_nested_parquet.benchmark
|
||||
# description: Run Q01 over lineitem stored in structs in a Parquet file
|
||||
# group: [struct]
|
||||
|
||||
name Q01 Structs (Parquet)
|
||||
group tpch
|
||||
subgroup sf1
|
||||
|
||||
require tpch
|
||||
|
||||
load
|
||||
CALL dbgen(sf=1, suffix='_normalized');
|
||||
COPY (SELECT {'id': rowid, 'values': lineitem_normalized} AS struct_val FROM lineitem_normalized) TO '${BENCHMARK_DIR}/lineitem_struct.parquet';
|
||||
CREATE VIEW lineitem AS SELECT UNNEST(struct_val, recursive := True) FROM read_parquet('${BENCHMARK_DIR}/lineitem_struct.parquet');
|
||||
|
||||
run extension/tpch/dbgen/queries/q01.sql
|
||||
|
||||
result extension/tpch/dbgen/answers/sf1/q01.csv
|
||||
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct_parquet.benchmark
vendored
Normal file
18
external/duckdb/benchmark/tpch/struct/tpch_q1_struct_parquet.benchmark
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# name: benchmark/tpch/struct/tpch_q1_struct_parquet.benchmark
|
||||
# description: Run Q01 over lineitem stored in structs in a Parquet file
|
||||
# group: [struct]
|
||||
|
||||
name Q01 Structs (Parquet)
|
||||
group tpch
|
||||
subgroup sf1
|
||||
|
||||
require tpch
|
||||
|
||||
load
|
||||
CALL dbgen(sf=1, suffix='_normalized');
|
||||
COPY (SELECT lineitem_normalized AS struct_val FROM lineitem_normalized) TO '${BENCHMARK_DIR}/lineitem_struct.parquet';
|
||||
CREATE VIEW lineitem AS SELECT UNNEST(struct_val) FROM read_parquet('${BENCHMARK_DIR}/lineitem_struct.parquet');
|
||||
|
||||
run extension/tpch/dbgen/queries/q01.sql
|
||||
|
||||
result extension/tpch/dbgen/answers/sf1/q01.csv
|
||||
Reference in New Issue
Block a user