pub fn is_jit_partition_up_to_date(
pool: &Pool<Postgres>,
view_meta: ViewMetadata,
spec: &SourceDataBlocksInMemory,
block_order: BlockOrder,
) -> impl Future<Output = Result<bool, Error>>Expand description
is_jit_partition_up_to_date compares a partition spec with the partitions that exist to know if it should be recreated Checks if a JIT partition is up to date.
Fetches the spec’s own candidate range (fetch_freshness_candidates) and runs the shared
matcher (spec_is_up_to_date) against it – see that function’s docs for the per-BlockOrder
semantics. Kept for the BlockOrder::EventTime callers (net_spans/thread_spans), whose
checks stay per-spec, interleaved with retire logic inside their own update_partition. The
five BlockOrder::InsertTime callers instead batch through find_up_to_date_partitions.