pub fn promotion_candidates(
buckets: &[JitBucket],
verdicts: &[Coverage],
candidates: &[PartitionFreshnessRow],
query_rung: TimeDelta,
max_nb_objects: i64,
) -> Vec<PromotionTarget>Expand description
Picks the buckets to promote. A pure function of the planner output, the verdicts and the candidate rows: no object storage is read. A bucket qualifies when the planner emitted it closed at the query’s rung (not descended), it was judged covered by at least two of its own rows, and those rows fit the object cap with a single schema hash.