pub fn is_jit_partition_up_to_date(
pool: &Pool<Postgres>,
view_meta: ViewMetadata,
spec: &SourceDataBlocksInMemory,
) -> 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. Used by the BlockOrder::EventTime callers
(net_spans/thread_spans), whose checks stay per-spec, interleaved with retire logic inside
their own update_partition.