ESQL: ENRICH attribute handling inconsistent with EVAL, GROK, ... #105807
Labels
:Analytics/ES|QL
AKA ESQL
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
>tech debt
For
ENRICH
with aWITH
statement, the attributes it creates are handled differently fromEVAL
andGROK
/DISSECT
.E.g. a query with
... | ENRICH languages_policy ON a WITH name = language_name
has anEnrich
logical/physical plan, and the Expression for thelanguage_name
attribute is an Alias calledname
.Weirdly, we need to handle the unaliased
language_name
ReferenceAttribute directly inPhysicalPlanOptimizer.ProjectAwayColumns
. A similar hack is currently required to make the DependencyCheck work on LogicalPlans.This should be refactored so that the attribute handling is analogous to
EVAL
andGROK
/DISSECT
.The text was updated successfully, but these errors were encountered: