pub fn plan_units(
planned: &[PlannedBucket],
rows: &[PartitionFreshnessRow],
) -> Vec<Unit>Expand description
Grows each planned bucket until it contains every row that intersects it, then coalesces the
units that came to overlap. planned is ascending and non-overlapping. Rows are half-open
against the unit (Aligned): SQL partitions touch at bucket edges, and a neighbor that merely
touches is not absorbed.