Status: historical.
explanation.rsandexplain_replacementswere removed with the legacy replacement search. What the planner considered, and why each candidate was pruned or rejected, is now in the stages' output: Pass 1's pruned candidates with theirPruneReason, Stage 2's pruned candidates, and Stage 3'sRejectionreasons, all written bystage_pipeline(see the Stage Viewer guide).
ASAP-aware mapping should make its discovered opportunities visible to users and other components.
For each relevant region of the plan, the planner should be able to explain:
- which replacements exist,
- what alternatives each replacement introduces,
- what conditions make those alternatives legal,
- and which parts of the plan they affect.
For example:
Aggregation: Quantile(latency, 0.99)
Available alternatives:
- exact quantile
- KLL
- DDSketch
Additional opportunities:
- share source filtering with Query B
- reuse finer-grained aggregation through roll-up
Implemented as asap-aware-mapping's explanation module (explain_replacements/explain_replacements_with, issue #257)