Skip to main content

fetch_freshness_candidates

Function fetch_freshness_candidates 

Source
pub async fn fetch_freshness_candidates(
    pool: &Pool<Postgres>,
    view_meta: &ViewMetadata,
    range: TimeRange,
) -> Result<Vec<PartitionFreshnessRow>, Error>
Expand description

Fetches every lakehouse_partitions row for view_meta whose insert range inclusively overlaps range (begin_insert_time <= range.end AND end_insert_time >= range.begin), with the narrowing applied in Rust by the caller (spec_is_up_to_date, resolve_bucket_coverage).