Skip to content

Conversation

@gmarouli
Copy link
Contributor

@gmarouli gmarouli commented May 6, 2025

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.

@gmarouli gmarouli added >bug :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data labels May 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @gmarouli, I've created a changelog YAML for you.

@gmarouli gmarouli changed the title Downsampling does not consider passthrough fields as dimensions Change the handling of passthrough dimenensions May 6, 2025
@gmarouli gmarouli marked this pull request as ready for review May 7, 2025 11:17
@gmarouli gmarouli added auto-backport Automatically create backport pull requests when merged v8.19.0 labels May 7, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@gmarouli gmarouli requested a review from kkrik-es May 7, 2025 11:26
Copy link
Contributor

@kkrik-es kkrik-es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactoring, thanks!

@gmarouli gmarouli merged commit e97efd2 into elastic:main May 8, 2025
17 checks passed
@gmarouli gmarouli deleted the fix-downsampling-with-passthrough-dimensions branch May 8, 2025 06:04
@elasticsearchmachine
Copy link
Collaborator

elasticsearchmachine commented May 8, 2025

💔 Backport failed

Status Branch Result
8.19
8.17
8.18
9.0

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 127752

gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request May 8, 2025
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 added a commit to gmarouli/elasticsearch that referenced this pull request May 8, 2025
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 added a commit to gmarouli/elasticsearch that referenced this pull request May 8, 2025
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.
elasticsearchmachine pushed a commit that referenced this pull request May 8, 2025
…7886)

* Change the handling of passthrough dimenensions (#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.

* Fix backport incompatibilities
gmarouli added a commit that referenced this pull request May 8, 2025
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.
elasticsearchmachine pushed a commit that referenced this pull request May 8, 2025
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.
gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request May 8, 2025
…stic#127890)

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.
elasticsearchmachine pushed a commit that referenced this pull request May 8, 2025
…7890) (#127905)

* Change the handling of passthrough dimenensions (#127752) (#127890)

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.

* Adjust the test to match this version of the code
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request May 9, 2025
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.
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request May 12, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data Team:StorageEngine v8.17.7 v8.18.2 v8.19.0 v9.0.2 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downsampling fails if source index contains fields of type passthrough

3 participants