Skip to content

[Feature] DataFusion engine E4c: label functions, relabel and remaining PromQL operators #1514

Backlog

Description

@milindsrivastava1997

Example

label_replace(up, "host", "$1", "instance", "(.*):.*"), sum without (instance) (…), absent(…).

User need and MVP

The rest of PromQL in the corpus. Simplest correct version only; no performance work (design doc, Principle).

Authoritative design

D11, D13 (relabel, info-enrich, series sample, subquery, vector-from-scalar). Use E7 to pick the remaining operators.

Agent orchestration: orchestration plan.

Inputs, outputs, and invariants

Labels are plain string columns; $promql_series_identity is canonical JSON of the full label set and is recomputed by a string function when labels change.

Before and after behavior

Before: these operators refused. After: E7 shows every exact-only PromQL corpus plan compiling.

Unit and end-to-end acceptance tests

  • Per function: hand-written input and expected output; identity recomputation is canonical (same labels → same string).

Explicit non-goals

Dictionary encoding or interned series ids (later), standalone scalar queries (D17).

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