Skip to content

[9.0] Change the handling of passthrough dimenensions (#127752)#127889

Merged
gmarouli merged 1 commit intoelastic:9.0from
gmarouli:backport/9.0/pr-127752
May 8, 2025
Merged

[9.0] Change the handling of passthrough dimenensions (#127752)#127889
gmarouli merged 1 commit intoelastic:9.0from
gmarouli:backport/9.0/pr-127752

Conversation

@gmarouli
Copy link
Contributor

@gmarouli gmarouli commented May 8, 2025

Backport of #127752.

When downsampling an index that has a mapping with passthrough dimensions the downsampling process identifies the wrapper object as a dimension and it fails when it tried to retrieve the type.

We did some prework to establish a shared framework in the internalClusterTest. For now it only includes setting up time series data stream helpers and a limited assertion helper for dimensions and metrics. This allows us to setup an internalClusterTest that captures this issue during downsampling in #125156.

To fix this we refine the check that determines if a field is dimension, to skip wrapper field.

Fixes #125156.

When downsampling an index that has a mapping with passthrough dimensions the downsampling process identifies the wrapper object as a dimension and it fails when it tried to retrieve the type.

We did some prework to establish a shared framework in the internalClusterTest. For now it only includes setting up time series data stream helpers and a limited assertion helper for dimensions and metrics. This allows us to setup an internalClusterTest that captures this issue during downsampling in elastic#125156.

To fix this we refine the check that determines if a field is dimension, to skip wrapper field.

Fixes elastic#125156.
@gmarouli gmarouli added backport :StorageEngine/TSDB You know, for Metrics labels May 8, 2025
@gmarouli gmarouli merged commit 64f3418 into elastic:9.0 May 8, 2025
16 checks passed
@gmarouli gmarouli deleted the backport/9.0/pr-127752 branch May 8, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants