Skip to content

ESQL: Fix INLINE STATS right side key column pruning on project#142215

Closed
ivancea wants to merge 2 commits intoelastic:mainfrom
ivancea:esql-inlinestats-prune-right-key-fix
Closed

ESQL: Fix INLINE STATS right side key column pruning on project#142215
ivancea wants to merge 2 commits intoelastic:mainfrom
ivancea:esql-inlinestats-prune-right-key-fix

Conversation

@ivancea
Copy link
Contributor

@ivancea ivancea commented Feb 10, 2026

Found some GenerativeIT tests that failed with errors like:

Plan [InlineJoin[LEFT,[job_positions{f}#121068],[job_positions{r}#121068]]] optimized incorrectly due to missing references from right hand side [job_positions{r}#121068]

Which led to this PR's finding. The CI failing queries apparently didn't have this case, and they were actually failing with a timeout, so probably unrelated.

@ivancea ivancea added >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.4.0 labels Feb 10, 2026
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@astefan
Copy link
Contributor

astefan commented Feb 10, 2026

There is a more comprehensive (as in covering the pruning of columns in Project, as well) PR here #141056

@ivancea
Copy link
Contributor Author

ivancea commented Feb 10, 2026

There is a more comprehensive (as in covering the pruning of columns in Project, as well) PR here #141056

Oh, didn´t see it; closing this one

@ivancea ivancea closed this Feb 10, 2026
@ivancea ivancea deleted the esql-inlinestats-prune-right-key-fix branch February 10, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants