Skip to content

Write Primitives insert_select_aggregated

Write Primitives benchmark · all Write Primitives queries

Representative SQL

Rendered for DataFusion with default parameters.

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
queries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQL
print(queries['insert_select_aggregated'])

Source

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