Author: Harry John Date: June 2025 Status: Proposed Overview Background Cortex currently implements distributed query execution by rewriting queries into multiple subqueries, handled through middlewares in the query-frontend. These split queries are scheduled via the query-scheduler, evaluated by queriers, and merged back in the query-frontend. This proposal introduces a new distributed query execution model based on Thanos PromQL engine. Terminology Logical plan - Parsed PromQL expression re...