Skip to main content

broadcast_preserves_partition_identity

Function broadcast_preserves_partition_identity 

Source
fn broadcast_preserves_partition_identity(
    left: &NativeNode,
    right: &NativeNode,
    matching: &BinaryMatching,
    labels: Option<&StoredSeriesLabels>,
) -> bool
Expand description

Whether a binary node with a source-free scalar on one side keeps every series of its vector side apart.

A scalar carries no labels, so the operation reaches each series of the vector side as it is. An arithmetic operation and a bool comparison drop the metric name and the metadata labels with it, so each needs the proof a name-dropping map needs; a filtering comparison keeps the label set it read, which is exactly the identity its input had.