-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Downsampling++] Allow merging of passthrough mappers with object mappers under certain conditions. #135431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Downsampling++] Allow merging of passthrough mappers with object mappers under certain conditions. #135431
Conversation
4e4c829
to
c7656ea
Compare
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Hi @gmarouli, I've created a changelog YAML for you. |
}); | ||
safeAwait(listener); | ||
|
||
assertDownsampleIndexFieldsAndDimensions(sourceIndex, targetIndex, downsampleConfig); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider deduplicating the shared parts.
Maybe backport to |
💚 Backport successful
|
…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.
We opened a backport PR but it looks like we need extra changes to allow an object to merge with a passthrough object. Considering this, we advice to not backport this to @felixbarny & @AlexanderWert any objections? |
This PR is an alternative of #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:
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.