should be it
This commit is contained in:
24
external/duckdb/benchmark/tpch/csv/lineitem_csv_gzip.benchmark
vendored
Normal file
24
external/duckdb/benchmark/tpch/csv/lineitem_csv_gzip.benchmark
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user