Valid time¶
A valid time makes it possible to register more than one record per key, by incorporating a valid_from attribute into the primary key.
A valid timeline from the source system tells us in which period a specific attribute is valid. It has a start date and an end date: a timeline. For example:
- For Order item 123, a Retail price of 10.00 was valid from 1-1-2019 to 1-6-2019.
- For Order item 123, a Retail price of 12.00 was valid from 1-6-2019 to 1-1-2020.
The difference between a functional date and valid date is that the valid timeline tells us during which period a fact is valid in the modeled reality, whereas a functional date is just one point in time.
Tip
We advise you to deliver the valid date in a date or datetime2(7) format.
Warning
Make sure to deliver the valid timeline in a Closed Open interval, otherwise this will lead to an error in the Central Facts Layer due to overlapping timelines.
Closed Open means that the timeline is valid from (vanaf in Dutch) the supplied valid start date until - but not including - (tot in Dutch) the supplied valid end date. In practice, this means that the start date of a valid time record is equal to the end date of the previous valid time record.