Write Primitives ddl_create_index_on_existing
Write Primitives benchmark · all Write Primitives queries
Representative SQL
Rendered for DataFusion with default parameters.
CREATE TABLE test_idx_existing ASSELECT *FROM ordersWHERE o_orderkey <= 100;CREATE INDEX idx_existing_price ON test_idx_existing(o_totalprice)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 factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['ddl_create_index_on_existing'])Source
Query text: benchbox/core/write_primitives/operations.py