ESQL: LOOKUP JOIN push down optimizations #119082
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Compared to
ENRICH
(and other, similar plans likeGROK
,DISSECT
andEVAL
), we do not push downLOOKUP JOIN
s.That leads to suboptimal plans, e.g. because projections before and after the
LOOKUP JOIN
cannot be combined.Example:
The
RENAME foo AS b
in between theLOOKUP JOIN
s becomes anEsqlProject
, which cannot be combined with theEsqlProject
that comes from theDROP b*
because theLOOKUP JOIN lookup_index_2
is in the way. As a result, we cannot determine that the fieldfoo
obtained from thelookup_index1
is actually dropped and unused in the end.Edit: Let's also double check that there are no other existing optimizer rules that could (somewhat) easily be applied to
LOOKUP JOIN
.The text was updated successfully, but these errors were encountered: