Skip to main content

judge_unit

Function judge_unit 

Source
pub fn judge_unit(
    unit: &Unit,
    rows: &[PartitionFreshnessRow],
    file_schema_hash: &[u8],
    probed_count: i64,
) -> UnitVerdict
Expand description

Covered when the unit has rows, every row was written with the view’s current schema, and the rows’ summed source_data_hash equals the count the probe returned. This is the maintenance daemon’s freshness rule (equality, summed), so a definition gets the same verdicts under either writer.