elasticsearch
elasticsearch copied to clipboard
Enhance logical plan explicitly projecting join keys
In Sample query execution, intermediary queries do not need to return all the fields from the retrieved documents: only join keys are needed to for the processing. This PR optimizes this aspect, re-writing the logical plan to only project the join keys, avoiding to create field extractors for not needed fields.
This also avoids that the query folder tries to do field extraction on fields with no exact match (eg. "text" fields), that would result in an error.
Pinging @elastic/es-ql (Team:QL)
@elasticsearchmachine run elasticsearch-ci/part-1