Write Primitives insert_batch_values_1000
Write Primitives benchmark · all Write Primitives queries
Representative SQL
Rendered for DataFusion with default parameters.
INSERT INTO insert_ops_lineitemSELECT 9001000 + n AS l_orderkey, 1 AS l_partkey, 1 AS l_suppkey, 1 AS l_linenumber, 10.0 * n AS l_quantity, 1000.0 * n AS l_extendedprice, 0.05 AS l_discount, 0.02 AS l_tax, 'N' AS l_returnflag, 'O' AS l_linestatus, CAST('1998-01-01' AS DATE) AS l_shipdate, CAST('1998-01-15' AS DATE) AS l_commitdate, CAST('1998-01-20' AS DATE) AS l_receiptdate, 'DELIVER IN PERSON' AS l_shipinstruct, 'TRUCK' AS l_shipmode, 'large_batch_' || CAST(n AS VARCHAR) AS l_commentFROM ( SELECT UNNEST(GENERATE_SERIES(0, 999)) AS n) AS tRepresentative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import WritePrimitives
bench = WritePrimitives(scale_factor=0.01) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['insert_batch_values_1000'])Source
Query text: benchbox/core/write_primitives/operations.py