Skip to content

Write Primitives merge_full_overlap_all_update

Write Primitives benchmark · all Write Primitives queries

Representative SQL

Rendered for DataFusion with default parameters.

MERGE INTO merge_ops_target AS target
USING (
SELECT
o_orderkey,
o_totalprice * 1.1 AS o_totalprice,
'merge_all_update' AS o_comment
FROM merge_ops_target
WHERE
o_orderkey <= (
SELECT
MIN(o_orderkey) + 100
FROM merge_ops_target
)
) AS source
ON target.o_orderkey = source.o_orderkey
WHEN MATCHED THEN UPDATE SET
o_totalprice = source.o_totalprice,
o_comment = source.o_comment

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
queries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQL
print(queries['merge_full_overlap_all_update'])

Source

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