ESQL: Refactor top-level query planning #107953
Labels
:Analytics/ES|QL
AKA ESQL
>refactoring
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
>tech debt
ESQL's query planning currently uses multiple nested ActionListeners (see entrypoint here. Because of this, the code needs to be read last-to-first, starting with the plan optimization (last step), going deeper until the initial planning step (first step).
The ActionListeners seem to only contain procedural code, so this can probably be rewritten as simple procedural code: parse -> plan -> optimizations, resp. the number of action listener layers can likely be reduced.
The text was updated successfully, but these errors were encountered: