Files
email-tracker/external/duckdb/benchmark/tpch/csv/lineitem_csv_gzip.benchmark
2025-10-24 19:21:19 -05:00

25 lines
592 B
Plaintext

# name: benchmark/tpch/csv/lineitem_csv_gzip.benchmark
# description: Read Lineitem CSV gzipped with auto-detection
# group: [csv]
name Read Lineitem CSV gzipped with auto-detection
group csv
require tpch
# create the CSV file
load
CREATE SCHEMA tpch_schema;
CALL dbgen(sf=1, schema='tpch_schema');
COPY tpch_schema.lineitem TO '${BENCHMARK_DIR}/lineitem.csv.gz' (DELIMITER '|', HEADER);
DROP SCHEMA tpch_schema CASCADE;
run
CREATE OR REPLACE TABLE lineitem AS (SELECT * FROM read_csv_auto(['${BENCHMARK_DIR}/lineitem.csv.gz']));
cleanup
DROP TABLE IF EXISTS lineitem;
result I
6001215