state_periods, you can use this function across multiple state aggregates that cover different
time buckets. Any missing values at the time bucket boundaries are interpolated from adjacent state aggregates.
Samples
Given state aggregates bucketed by 1-minute intervals, interpolate the states at the bucket boundaries and list all time periods corresponding to the stateOK.
To perform the interpolation, the LAG and LEAD functions are used to get the previous and next state aggregates.