Skip to main content

leaves_a_drop_to_the_storage_keys

Function leaves_a_drop_to_the_storage_keys 

Source
pub fn leaves_a_drop_to_the_storage_keys(
    tree: &NativeTree,
    source_tags: &[Vec<String>],
    source_metrics: &[Option<Arc<str>>],
    keys_survive: bool,
) -> bool
Expand description

Whether tree holds a node that drops the metadata labels over series whose labels are proved to tell apart and whose keys are not (see drops_metadata_labels_over_one_metric).

A statement this answers true for is one whose drop the labels prove while the scan below it keys its series by a column that can hold NULL in one series and '' in another (keys_survive is false, and the caller states that fact from the resolved table). Nothing is collected for that pair - the labels are the whole of the proof - so this is the count that keeps the statements it leaves unproved observable, and the caller reports it as the reason its label-set check does not cover them.