Skip to content

[9.3] ESQL: Fix injected attributes's IDs in UnionAll branches (#141262)#141675

Merged
elasticsearchmachine merged 3 commits intoelastic:9.3from
alex-spies:backport/9.3/pr-141262
Feb 2, 2026
Merged

[9.3] ESQL: Fix injected attributes's IDs in UnionAll branches (#141262)#141675
elasticsearchmachine merged 3 commits intoelastic:9.3from
alex-spies:backport/9.3/pr-141262

Conversation

@alex-spies
Copy link
Copy Markdown
Contributor

@alex-spies alex-spies commented Feb 2, 2026

This will backport the following commits from main to 9.3:

)

This fixes the generation of name IDs for the attributes corresponding to the unmapped fields and are pushed to different branches in `UntionAll`.

So far, one set of IDs was generated and reused for all subplans. This is now updated to individual set per subplan. Along the change, the handling of `Fork` in `ResolveUnmapped` has been somewhat simplified.

Also, more unit tests have been completed (where the plans are simple enough) and the plan comments updated to replace the `EsqlProject` with the now merged `Project`.

A minor collateral proposed change: the CSV spec-based tests skipped due to missing capabilities are now logged.

(cherry picked from commit 8e3113c)
@alex-spies alex-spies changed the title [9.3] ESQL: Fix injected attributes's IDs in UnionAll branches (#141262) [9.3] ESQL: Fix injected attributes's IDs in UnionAll branches (#141262) Feb 2, 2026
9.3 does not have elastic#139058, so the implicit limits at the top of subquery
  branches are still in place. Adjust the expectations accordingly.
@alex-spies alex-spies added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Feb 2, 2026
@elasticsearchmachine elasticsearchmachine merged commit be437d7 into elastic:9.3 Feb 2, 2026
35 checks passed
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 >bug v9.3.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants