Skip to content
SQLMediumofficialBenchmark eligiblepro

Incremental order sync

Nightly MERGE scans all of orders_raw. Process only new/updated rows using updated_at, plus a documented lookback so late loader rows are not lost. unique_key is order_id.

FieldDetail
CreatorPipelineArena
Version2.0.0
Time50 min
Scored checks15

Objective

orders_curated matches after two ticks, including late rows inside the lookback.

#Success condition
1Watermark stored and advanced
2Late rows within a 3-day lookback are applied
3Updates upsert on order_id (no duplicates)
4Second run with no new data is a no-op
#Visible instruction
1Filter source with updated_at greater than max(target.updated_at) minus 3 days.
2MERGE / upsert on order_id.
3Persist the watermark after a successful apply.
Scoring checks the leftover tables or files, replay safety, and seeded variations — not the exact syntax you used. Check implementation is never shown to participants.

Signed-in workspace: Open in app