Skip to main content

set_operation

Function set_operation 

Source
fn set_operation(
    context: &Context<'_>,
    binary: &BinaryExpr,
    op: SetOp,
) -> Result<NativeNode>
Expand description

Compiles and, or or unless between two vectors, matched by the labels the query wrote.

The parser already refuses a scalar operand, bool and group_left / group_right on a set operator. It does not refuse a fill value, which Prometheus does (“filling in missing series not allowed for set operators”), so that is refused here along with any cardinality other than the many-to-many the parser assigns.