Write Primitives merge_multi_column_update
Write Primitives benchmark · all Write Primitives queries
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
MERGE INTO merge_ops_target AS targetUSING ( SELECT o_orderkey, o_totalprice * 1.05 AS o_totalprice, '1-URGENT' AS o_orderpriority, 'Clerk#000000999' AS o_clerk, o_shippriority + 1 AS o_shippriority, 'merge_multi_col' AS o_comment FROM merge_ops_target WHERE o_orderkey <= ( SELECT MIN(o_orderkey) + 50 FROM merge_ops_target )) AS sourceON target.o_orderkey = source.o_orderkeyWHEN MATCHED THEN UPDATE SET o_totalprice = source.o_totalprice, o_orderpriority = source.o_orderpriority, o_clerk = source.o_clerk, o_shippriority = source.o_shippriority, o_comment = source.o_commentRepresentative 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 factorprint(bench.get_queries()['merge_multi_column_update'])Source
Query text: benchbox/core/write_primitives/operations.py