feat(planner): --planner saved reads RQE trees and writes rqe_configs #882
Copy link
Copy link
Closed
Labels
Description
Part of the RQE frontend tracker. Decisions live in the tracker. Stacked on A1.
What
asap-planner-rs --planner saved (src/optimizer/saved_plan.rs):
- When an e2e query has
expr, take its leaves (and their RQE ids) from the tree instead ofdecompose_to_leaveson the PromQL/SQL text. Queries withpromql/sqland noexprkeep working as today. - Write a new
rqe_configssection toinference_config.yaml:rqe_id -> aggregation refs(the same referencesquery_configsuses, i.e. enough for the engine to build anAggregationIdInfo: key + value aggregation ids/types), including any query-time roll-up the deployment needs (deployment grouping finer than the RQE's). - Keep writing
query_configsfor queries that havepromql/sql. - Engine side:
InferenceConfigdeserialization acceptsrqe_configs(stored, not yet used).
Done when
- unit tests: an
expr-only query is planned;rqe_configsis written for plain and roll-up deployments; old tables convert unchanged
Reactions are currently unavailable
Activity
milindsrivastava1997 commentedon Oct 14, 2026
Tracker: #886