Skip to content

Write Primitives insert_select_with_join

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_orders_summary (
o_orderkey,
o_custkey,
o_orderdate,
o_totalprice,
customer_name
)
SELECT
o.o_orderkey,
o.o_custkey,
o.o_orderdate,
o.o_totalprice,
c.c_name
FROM orders AS o
JOIN customer AS c
ON o.o_custkey = c.c_custkey
WHERE
o.o_orderkey BETWEEN 1 AND 100

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_select_with_join'])

Source

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