Part of #497.
build_spatiotemporal_context (asap-query-engine/src/engines/simple_engine/sql.rs) needs to detect topk/bottomk-shaped queries so they can be folded into the SpatioTemporal query type instead of relying on nested-aggregation handling.
Blocks the removal of Spatial/TemporalGeneric/TemporalQuantile/OneTemporalOneSpatial detection (separate child issue) — that removal needs this in place first.
Part of #497.
build_spatiotemporal_context(asap-query-engine/src/engines/simple_engine/sql.rs) needs to detecttopk/bottomk-shaped queries so they can be folded into theSpatioTemporalquery type instead of relying on nested-aggregation handling.Blocks the removal of
Spatial/TemporalGeneric/TemporalQuantile/OneTemporalOneSpatialdetection (separate child issue) — that removal needs this in place first.