Skip to content

[9.3] Fix metadata fields being nullified/loaded by unmapped_fields setting (#143155)#143373

Merged
elasticsearchmachine merged 2 commits intoelastic:9.3from
alex-spies:backport/9.3/pr-143155
Mar 2, 2026
Merged

[9.3] Fix metadata fields being nullified/loaded by unmapped_fields setting (#143155)#143373
elasticsearchmachine merged 2 commits intoelastic:9.3from
alex-spies:backport/9.3/pr-143155

Conversation

@alex-spies
Copy link
Copy Markdown
Contributor

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

This will backport the following commits from main to 9.3:

…elastic#143155)

Metadata fields (_score, _id, _index, etc.) were incorrectly treated as
unmapped fields when SET unmapped_fields="nullify" or "load" was used.
This silently returned NULL instead of producing a proper error guiding
the user to add METADATA to the FROM clause.

Closes elastic#141907

(cherry picked from commit e76c5c1)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/rules/ResolveUnmapped.java
@alex-spies alex-spies added >bug :Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Mar 2, 2026
@elasticsearchmachine elasticsearchmachine merged commit a05c56b into elastic:9.3 Mar 2, 2026
35 checks passed
@alex-spies alex-spies deleted the backport/9.3/pr-143155 branch March 2, 2026 12:40
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.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants