elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Enhance logical plan explicitly projecting join keys

Open luigidellaquila opened this issue 3 years ago • 1 comments

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.

luigidellaquila avatar Jul 27 '22 07:07 luigidellaquila

Pinging @elastic/es-ql (Team:QL)

elasticsearchmachine avatar Jul 28 '22 07:07 elasticsearchmachine

@elasticsearchmachine run elasticsearch-ci/part-1

luigidellaquila avatar Aug 10 '22 11:08 luigidellaquila