noCV
LAKE-104 · Build reliable models

Assign sales to the merchant's reporting day

Practice briefStoryIntermediate

A 23:30 Los Angeles sale appears on tomorrow's report because the mart groups UTC dates. Merchants cannot reconcile their register totals.

Focused work estimate
2h 30m + prerequisites
Priority in the scenario
High
Engineering practice
Time-zone modeling · Date dimensions · Data quality

Estimated field mix

  • Data engineering100%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

A fictional marketplace reports daily sales to merchants. Refund joins inflate revenue, merchants close books in different time zones, and backfills compete with nightly loads. All source orders and merchants are synthetic.

Setup prerequisites

  • SQL joins and aggregates
  • Batch pipelines
  • Metric definitions

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Derive reporting dates from the merchant's configured time zone.
  • Retain the original UTC instant.
  • Handle 23-hour and 25-hour days without lost or duplicate source rows.

Implementation constraints

  • An unknown time zone blocks the affected partition instead of defaulting silently.

Verification to include

  • Assign sales on both sides of local midnight correctly.
  • Exercise clock-change boundaries and an invalid time zone.

Deliverables

  • Reporting-date model and boundary fixtures

Rollout and recovery

Compare date-shifted totals before switching the synthetic merchant dashboard.

Value of the work

For the engineer: Practice metric contracts, historical dimensions, incremental processing, and reproducible warehouse releases.

For the team: Inspect whether an engineer can reconcile business totals and explain metric changes in a reviewable data product.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.