Skip to content

[9.2] Support multi-value dimensions in downsampling (bug fix) (#145458)#145539

Merged
gmarouli merged 4 commits intoelastic:9.2from
gmarouli:backport/9.2/pr-145458
Apr 2, 2026
Merged

[9.2] Support multi-value dimensions in downsampling (bug fix) (#145458)#145539
gmarouli merged 4 commits intoelastic:9.2from
gmarouli:backport/9.2/pr-145458

Conversation

@gmarouli
Copy link
Copy Markdown
Contributor

@gmarouli gmarouli commented Apr 2, 2026

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

)

elastic#112645 introduced support
for multi-value dimensions but downsampling was not handling that
correctly.

**Observed behaviour**

Downsampling will store only one value in the downsampled document, if a
document has more than one values for a dimension field.

**Fix**

After this fix, downsampling will create an object array with all the
values and store that in the downsampled document. We also added extra
tests.

(cherry picked from commit 63dfd4a)

# Conflicts:
#	x-pack/plugin/downsample/src/main/java/org/elasticsearch/xpack/downsample/DimensionFieldDownsampler.java
@gmarouli gmarouli merged commit e49ed8e into elastic:9.2 Apr 2, 2026
31 checks passed
@gmarouli gmarouli deleted the backport/9.2/pr-145458 branch April 2, 2026 11:48
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