Skip to content

Conversation

@gmarouli
Copy link
Contributor

@gmarouli gmarouli commented Dec 5, 2025

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…tic#139104)

In elastic#138869 we fixed the handling of the multi-fields; however, we
introduced a bug when a mapping contains a alias type.

For example, the following mapping:

```
"@timestamp": {
  "type": "date"
},
"timestamp": {
  "type": "alias",
  "path": "@timestamp"
}
```

The cause of the bug was that in the `FieldValueFetcher` we switch the
check wether a field is indexed from the name we retrieved in the label
to the name of the field type. In this case, the label is `timestamp`
which does not in the indexed but the name of the field type is
"@timestamp".

(cherry picked from commit 47698be)

# Conflicts:
#	x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java
@gmarouli gmarouli added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Dec 5, 2025
@elasticsearchmachine elasticsearchmachine merged commit ef11738 into elastic:9.1 Dec 5, 2025
35 checks passed
@gmarouli gmarouli deleted the backport/9.1/pr-139104 branch December 5, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v9.1.9

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants