Skip to main content

update_on_demand_view

Function update_on_demand_view 

Source
pub fn update_on_demand_view(
    lakehouse: Arc<LakehouseContext>,
    view: Arc<dyn View>,
    on_demand_sources: &[Arc<dyn View>],
    extract_sources: &[ViewMetadata],
    max_jit_src_bytes: i64,
    query_range: TimeRange,
) -> impl Future<Output = Result<(), Error>>
Expand description

Brings an on-demand view up to date for query_range: sizes buckets from the range, probes each one, rewrites the stale ones, then promotes closed history to the range’s rung.

on_demand_sources are refreshed over the range the units cover before source partitions are snapshotted. extract_sources are the views the extract query scans, whose snapshotted partitions measure the source bytes of a range against max_jit_src_bytes. view is owned because promotion hands it to create_merged_partition.