Write Primitives merge_conditional_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 * FROM orders WHERE o_orderkey BETWEEN 1 AND 50) AS sourceON target.o_orderkey = source.o_orderkeyWHEN MATCHED AND source.o_totalprice > 100000 THEN UPDATE SET o_comment = 'merge_high_value', o_orderpriority = '1-URGENT'WHEN MATCHED THEN UPDATE SET o_comment = 'merge_low_value'WHEN NOT MATCHED THEN INSERTRepresentative 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_conditional_update'])Source
Query text: benchbox/core/write_primitives/operations.py