Skip to content

PromQL: support nested aggregations in binary operator operands #158183

Description

@sidosera

What

A binary operator whose operands are both source-backed rejects nested across-series aggregations:

binary expressions with nested aggregations are not supported at this time

e.g. sum(max by (pod) (metric)) / sum(other). The aggregate-folding translation merges both operands into a single TimeSeriesAggregate, which cannot represent a per-operand two-level aggregation.

Notes

The vector matching translation (#155634) already translates each operand as an independent sub-pipeline joined afterwards; the same composition could lift this restriction for unmatched operators.

Rejection site: PromqlCommand post-analysis verification.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions