pub async fn promote_closed_buckets(
lakehouse: Arc<LakehouseContext>,
view: Arc<dyn View>,
targets: Vec<PromotionTarget>,
max_nb_objects: i64,
max_bytes: i64,
convention: RangeConvention,
)Expand description
Merges each target’s partitions into one, in turn. Never fails: a target that errors is logged and counted, and the query still reads a complete set of partitions because a merge retires its inputs in the same transaction that inserts the result.
The lock transaction stays open across the merge, which takes a second connection from the same pool, so a promoting query holds two connections.