Skip to main content

depends_on_input_order

Function depends_on_input_order 

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

Whether node holds an operation whose answer depends on the order its input arrives in.

limitk keeps the first k series of each group in input order ([promql::select::limitk]), and a node with more than one input reads them through a gather that hands over whichever partition became ready first, so the schedule would decide which series a query keeps. Only this operation’s selection depends on that order: topk breaks ties by label and limit_ratio selects by a label hash.