Skip to content

Unify spatial and temporal aggregation handling across PromQL, SQL, and Elastic #488

Description

@milindsrivastava1997

Background

ASAPQuery was built PromQL-first, which distinguishes "temporal" aggregation (sum_over_time(metric[5m]), explicit range) from "spatial" aggregation (sum by (cpu) (metric), implicit "last scrape interval"). That distinction is encoded today as enums (QueryPatternType, QueryType::Spatial) that don't map cleanly onto SQL or Elastic, where a time range is always explicit — and the implicit defaults each query language applies have diverged, producing at least one concrete bug.

Issues

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions