Skip to content

[Feature] DataFusion engine E5a: sketch handles, registry, sketch functions, view reads #1510

Backlog

Description

@milindsrivastava1997

Example

quantile_over_time(0.99, latency[5m]) planned over a KLL view: the view-read leaf returns UInt64 handles for 5 one-minute panes, SummaryMerge merges them per (eval_time, keys), SummaryEstimate returns the quantile.

User need and MVP

Run sketch plans. Simplest correct version only; no performance work (design doc, Principle).

Authoritative design

D5, D4, D13 (SummaryAgg, SummaryMerge, SummaryEstimate, FinalizeExactAccumulator). Kernels come from E2's crate.

Agent orchestration: orchestration plan.

Inputs, outputs, and invariants

  • Sketch column: UInt64 ids into a per-batch append-only registry of Arc<dyn Sketch>; family and parameters in Arrow field metadata; the compiler rejects merges of mismatched families or parameters.
  • View reads are exact: a missing window is NotReady.
  • Exact states are plain Arrow columns.

Before and after behavior

Before: no sketch operators. After: corpus sketch plans over AtIngestion views compile and run on an in-memory view store filled by tests.

Unit and end-to-end acceptance tests

  • Build/merge/estimate per family against the E2 kernels directly.
  • Mismatched parameters refuse the plan at install.
  • A missing view window gives NotReady for the dependent entries only.

Explicit non-goals

OnFirstRead saves (E5b), memory accounting for the registry, the shared Hydra build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementwindow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions