Bug: Mismatch between planner and engine for Elastic Avg aggregation.
Planner (planner/elastic_dsl.rs:157-162) precomputes [Sum, Count] sketches.
Engine (simple_engine/elastic.rs:122) queries Statistic::Rate at runtime.
Engine will miss precomputed data or hit the wrong accumulator for any Elastic Avg query.
Fix: Engine should query Sum and Count and divide, matching the planner.
Bug: Mismatch between planner and engine for Elastic
Avgaggregation.Planner (
planner/elastic_dsl.rs:157-162) precomputes[Sum, Count]sketches.Engine (
simple_engine/elastic.rs:122) queriesStatistic::Rateat runtime.Engine will miss precomputed data or hit the wrong accumulator for any Elastic
Avgquery.Fix: Engine should query
SumandCountand divide, matching the planner.