Skip to content

Conversation

gmarouli
Copy link
Contributor

Backports the following commits to 9.1:

…pers under certain conditions. (elastic#135431)

This PR is an alternative of
elastic#134996:

This fixes a bug that would be triggered when we would downsample an
index that had a metric field under a passthrough field. For example:

```
"metrics": {
   "type": "passthrough",
   "priority": 10,
   "properties": {
      "cpu_usage": {
         "type": "double",
         "time_series_metric": "gauge"
      }
    }
}
```

In this PR, we extend the merging possibilities of a passthrough field
to allow merging with object mappers that have subobjects false and they
are not a root object. They also fix merging an object mapper with a
passthrough field and ensure that the result will either be a
passthrough field or an error if the objects are incompatible.
@gmarouli gmarouli removed the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Sep 30, 2025
@gmarouli gmarouli requested a review from kkrik-es September 30, 2025 08:36
@gmarouli gmarouli closed this Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants