Skip to content

Write Primitives insert_select_aggregated

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_custkey,
o_totalprice,
order_count
)
SELECT
o_custkey,
SUM(o_totalprice),
COUNT(*)
FROM orders
WHERE
o_orderkey <= 1000
GROUP BY
o_custkey

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

Source

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