Skip to content

Conversation

@alex-spies
Copy link
Contributor

@alex-spies alex-spies commented Jun 23, 2025

This will backport the following commits from main to 8.19:

Add a new logical plan optimization:

When there is a Project (KEEP/DROP/RENAME/renaming EVALs) in a LOOKUP JOIN's left child (the "main" side), perform the Project after the LOOKUP JOIN. This prevents premature field extractions when the lookup join happens on data nodes.

(cherry picked from commit 809dab1)

# Conflicts:
#	x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java
#	x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/plan/logical/CommandLicenseTests.java
@alex-spies alex-spies added >enhancement auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Analytics/ES|QL AKA ESQL v8.19.0 labels Jun 23, 2025
@elasticsearchmachine elasticsearchmachine merged commit 48197b7 into elastic:8.19 Jun 23, 2025
22 checks passed
@alex-spies alex-spies deleted the backport/8.19/pr-129503 branch June 23, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >enhancement v8.19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants