Skip to content

Write Primitives insert_batch_values_1000

Write Primitives benchmark · all Write Primitives queries

Representative SQL

Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).

INSERT INTO insert_ops_lineitem
SELECT
9001000 + n,
1,
1,
1,
CAST(10.0 * n AS DECIMAL(15, 2)),
CAST(1000.0 * n AS DECIMAL(15, 2)),
CAST(0.05 AS DECIMAL(15, 2)),
CAST(0.02 AS DECIMAL(15, 2)),
'N',
'O',
CAST('1998-01-01' AS DATE),
CAST('1998-01-15' AS DATE),
CAST('1998-01-20' AS DATE),
'DELIVER IN PERSON',
'TRUCK',
'large_batch_' || CAST(n AS VARCHAR)
FROM (
SELECT
UNNEST(GENERATE_SERIES(0, 999)) AS n
) AS t

Representative 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 factor
print(bench.get_queries()['insert_batch_values_1000'])

Source

Query text: benchbox/core/write_primitives/operations.py