Skip to content

[Feature] DataFusion engine E4b: PromQL BinaryOp (vector matching) #1513

Backlog

Description

@milindsrivastava1997

Example

rate(errors[5m]) / on(job) group_left(instance) rate(requests[5m]) and a > bool 0.5 over a range query.

User need and MVP

PromQL binary operations. Simplest correct version only; no performance work (design doc, Principle).

Authoritative design

D13 BinaryOp row. Port from crates/executor/src/operators/vector_binary.rs; its tests are ported, its behavior is not trusted.

Agent orchestration: orchestration plan.

Inputs, outputs, and invariants

Custom operator matching per eval_time: one-to-one, group_left/group_right, many-to-many error, on/ignoring, bool, dropping __name__ via the identity column (D11).

Before and after behavior

Before: BinaryOp refused. After: corpus plans with binary operations run.

Unit and end-to-end acceptance tests

  • Matching cases from the Prometheus spec, including the many-to-many error and duplicate series on the one side.

Explicit non-goals

Set operators and/or/unless beyond what the executor supports, performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpromql

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions