A training row is a label plus the features the model would have had at the moment of the prediction. So the rule is short: a label at time t joins only feature values that existed at t. Netflix's 2016 requirements put it as no paradoxes, for example, the label can't be in the features.
The leak is easy to build by accident. Here the label is whether the member played title t9 after it was shown at 02:00 on March 2. One feature is the member's plays in t9's genre over 90 days. Join that feature's current value, and it counts the very play you're trying to predict, plus everything the member did afterward. Offline accuracy goes up. Online it vanishes, because at 02:00 on March 2 nobody knew yet.
For each label row, an as-of join takes the newest feature value whose timestamp is at or before the label's. The Feast feature store's docs describe this as a point-in-time join: it reproduces the state of the features at a moment in the past.
Say a feature's values over time are 0.31, then 0.35, then 0.52, and a label's time falls between 0.35 and 0.52. The as-of join takes 0.35.
Feast also bounds how far back the join looks. It scans back from each row's timestamp, up to the feature's TTL. TTL, time to live, is how long a stored value stays valid before it expires.
In the editor, write as_of(series, t), so that a label at hour 26 gets 0.35. series holds one feature's values at hours 0, 24 and 48, and the imported bisect finds where a time falls in a sorted list.