Skip to content

Tracking: end-to-end use case support for ASAPPlanner (inputs, missing components, adding summaries) #685

Open

Description

@zzylol

End-to-end use case support for ASAPPlanner. Design doc: #684 (docs/design_docs/proposals/asapplanner-e2e-use-case.md).

Inputs (doc: Detailed Design, one subsection per input)

Missing components (doc: Detailed Design, Missing components)

Adding a summary family (doc: Adding a new summary family end to end, Algorithm 3)

  • (a) Capability declaration: intents, statistics, input types, weight domain, grouping, mergeability, windows
  • (b) Pass 1 offer in summary_candidates, unsized
  • (c) Sizing (default_size_params) and theoretical bound, or evidence via output_guarantee
  • (d) Stage 2 physical operator implementation
  • (e) Stage 3 state size and pricing (summary_shape)
  • (f) Executor kernel via asap_sketchlib; coverage (docs: ASAP primitive schema and summary coverage (definition + selection) #573)
  • (g) sketch-bench accuracy and cost measurements
  • (h) Tests: catalog, composition, Stage 3, executor vs exact, acceptance example

Activity

  1. zzylol commented on Oct 14, 2026

    @zzylol
    ContributorAuthor

    Work items → PRs/issues (moved out of the design doc)

    The design doc docs/design_docs/proposals/asapplanner-e2e-use-case.md no longer names PRs or issues. This is the mapping it carried (as of origin/main at 6665fcc3), so status stays tracked here.

    Design docs cited

    Doc Number
    planner-layering.md (stages, Assumptions 1–8, Examples, Scenarios) #509
    asap-primitive-schema.md (summary coverage, maintained populations) #573
    decoupling_op_and_expr.md (operators vs scalar expressions) #511

    Inputs not read by the pipeline on main

    Input PRs / issues
    Time selection, window segments, panes (G10) #628, #632, #634
    Recurrence, predictability; Stage 2 materialization (MatAtIngestion/MatAtQuery, media) (G8) #604, #606
    Evaluation rate in pricing (G4) #594
    Arrival, raw-data retention, deployment capabilities (G9) #604, #609, #610
    Latency requirement / latency bounds, reasons for losing candidates #526, #660
    One bundle for all deployment inputs; capabilities #525
    Memory / disk budgets #660
    Executor support for scalar operator references #668
    Distinct-count / population bounds, HLL confidence in sizing and selection #678

    Cost model

    Item PRs / issues
    Remove unread PlanningModels.cost with the legacy search open PR #635
    Deployment prices, per-second cost, memory pricing, calibration (G4) #594
    Exact-state and KLL δ pricing #682
    Cost models 1/2/3 (usage over time, peak capacity, own-cluster trade-offs) #683, #660
    Measured costs (sketch-bench) #679
    Validation of measured vs analytical cost #347

    Accuracy model

    Item PRs / issues
    Guarantee composition through arithmetic and comparisons; top-k band #669
    Observed error fed back (runtime feedback) #250
    DDSketch domain gaps #527

    Tracked missing components

    Component PRs / issues
    Early search-space pruning without discarding a possibly-best plan #673
    Plan search strategies (DP over nesting, MILP over shared DAGs) #671
    DataFusion optimizer rules in SQL lowering; rule-list API #670
    Filter / HAVING push-down across levels #664
    Pass 2 reuse rules: rollup, top-k reuse, nested sum merge #680
    Pass 2 ASAP-aware CSE G4 (#588, #589, #593, #594, #640), G5 (#595–#599, #621, #627), G6 (#591, #592, #601), G10 (#628, #632, #634)
    Stage 2 materialization (G8) #604, #606
    Maintained-population top-k in Pass 1 #681
    Top-k output schema keeps item columns #672
    Grouped approximate counts via Hydra in Pass 1 (G7) #605
    Docs after consolidation #677
    Viewer redesign for stage_pipeline (G11) #574
    Per-operator timing in validate #656

    Proposed components (no issue yet when the doc was written)

    Component Related
    Plan handoff envelope (guarantees, costs, revision, input digest) —
    Validation that the deployment can execute the plan (dry bind) partly #609, #656
    Re-planning and state transitions —
    Runtime feedback into models #250 (error), #347 (cost validation)
    Latency estimation partly #526, #660
    User-facing explanations —
    Declared value domains and counter semantics —
    End-to-end acceptance on a real deployment backend restack
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions