Skip to main content

answers_one_series_per_label_set

Function answers_one_series_per_label_set 

Source
fn answers_one_series_per_label_set(node: &NativeNode) -> bool
Expand description

Whether node answers one series per label set by construction.

These are the nodes whose own kernel files or folds its rows by the label set a sample ends under, so two of the series it answers are distinct label sets whatever its inputs held: a fold answers one series per group, a match between two vectors and a set operation file their rows by the result label set and refuse two values of one field at one point, info merges the results that share a label set, and the functions that build one series out of many - absent, count_values and the histogram functions - answer a set of their own.

A metadata drop above one of them therefore cannot fold two of its series by removing the name: the identity that told them apart is the label set the kernel filed them under, and that set is what the drop is handed.

A NativeExpr::Merge is deliberately not one of them. It answers one series per canonical label set, and that set includes the name: a merge keeps a{job="x"} and b{job="x"} apart, so a drop above it that removes the name does fold those two, and it is collected (a_merge_below_a_drop_does_not_answer_the_metadata_labels).