fn drops_metadata_labels_over_one_metric(
node: &NativeNode,
source_tags: &[Vec<String>],
source_metrics: &[Option<Arc<str>>],
keys_survive: bool,
) -> boolExpand description
Whether node drops PROMQL_METADATA_LABELS on its own over series whose labels are proved to
tell apart and whose keys are not.
This is what the pair the proof leaves outside costs, stated rather than collected: the labels
prove the drop (metadata_labels_keep_series_apart), nothing at or below it has collected
already (canonical_below), and the scan’s primary key holds a column that can spell NULL in
one series and '' in another. Those two decode to an absent and to an empty label, and the drop
normalizes them into one - the case a collection used to be inserted for and that a name-dropping
kernel over a metric-engine table, whose tag columns are all nullable, paid a merge for. The
collection is gone (see metadata_labels_keep_series_apart) and this is the count that keeps
the statements it would have covered observable.
Every node that drops the metadata labels on its own counts: a map of math, a histogram map, a
parameterized map and an arithmetic or bool scalar broadcast, and the three that rewrite a
sample’s own value - a name-dropping range function, timestamp(x) and a timestamp over an
evaluated input.