Skip to content

Write Primitives update_conditional_multi_column

Write Primitives benchmark · all Write Primitives queries

Representative SQL

Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).

UPDATE update_ops_orders SET o_totalprice = CASE
WHEN o_orderpriority = '1-URGENT'
THEN o_totalprice * 1.2
WHEN o_orderpriority = '2-HIGH'
THEN o_totalprice * 1.1
ELSE o_totalprice
END, o_orderpriority = CASE WHEN o_totalprice > 250000 THEN '1-URGENT' ELSE o_orderpriority END, o_comment = 'complex_conditional'
WHERE
o_orderkey <= (
SELECT
MIN(o_orderkey) + 100
FROM update_ops_orders
)

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
print(bench.get_queries()['update_conditional_multi_column'])

Source

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