REPOSITORY CODING · HARD
Reject overlapping visible intervals for the same business key and keep the key equality predicate in the native join
Reject overlapping visible intervals for the same business key and keep the key equality predicate in the native join. Different keys never cross-match. The complete application includes native models, services, repository projections, a working preview and visible acceptance cases. Preserve the other documented invariants and run bash test/run.sh.
temporal-analyticsTemporal dimension join laboratory
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
PySpark · 80 minute session
- Join on half-open effective intervals. An event at an adjacent boundary belongs to exactly the later dimension.
- Apply the inclusive knowledge-time cutoff before revision selection. A version recorded at asOf is visible.
- Choose each fact logical identity latest visible revision and collapse identical redelivery. Older corrections must not overwrite later measures.
- Reject overlapping visible intervals for the same business key and keep the key equality predicate in the native join. Different keys never cross-match.
- Retain unmatched facts with null dimension and explicit unmatched label, and sum actual signed measures rather than row counts.
- At most 32 dimension observations and 40 fact observations. Revision identity is (logical id, observed). Tombstones delete the latest dimension version. Actual Spark windows, temporal joins and aggregations produce the report; empty inputs use explicit schemas.