Skip to content

PromQL: extended aggregation operators (limitk/limit_ratio/count_values/group) unsupported #49

Description

@zzylol

Summary

Extended aggregation operators parse but are rejected (UnsupportedAggregateOp): limitk, limit_ratio, count_values, group.

Corpus impact

40 rejections (2.1%). Breakdown: limit_ratio 19, limitk 14, count_values 5, group 2.

Examples

limitk(2, http_requests)
limit_ratio(0.1, http_requests)
count_values("version", build_version)
group(up) by (job)

Notes

  • Error variant: LoweringError::UnsupportedAggregateOp.
  • group was formerly mis-lowered to sum; it is now cleanly rejected (see promql_equivalence.rs). count_values creates a new label from sample values; limitk/limit_ratio are sampling operators — each needs a distinct intent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpromqlPromQL front-end lowering (L1→L2)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions