Write Primitives bulk_load_with_transformation
Write Primitives benchmark · all Write Primitives queries
Representative SQL
Rendered for DataFusion with default parameters.
TRUNCATE TABLE bulk_load_ops_target;INSERT INTO bulk_load_ops_targetSELECT CAST(o_orderkey AS INT), CAST(o_custkey AS INT), UPPER(o_orderstatus), CAST(o_totalprice AS DECIMAL(15, 2)), CAST(o_orderdate AS DATE), o_orderpriority, o_clerk, o_shippriority, CONCAT('TRANSFORMED: ', o_comment)FROM READ_CSV_AUTO('{file_path}/csv_small_1k.csv')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['bulk_load_with_transformation'])Source
Query text: benchbox/core/write_primitives/operations.py