Last 'other' bucket on terms agg broken when first bucket is split on a term containing a dash (-) #42467
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Aggregations
Aggregation infrastructure (AggConfig, esaggs, ...)
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Project:LensDefault
Kibana version: tested on master & 7.2
The
terms_other_bucket_helper
we use for dealing with "other" and "missing" buckets in terms aggregations has a weird edge case where splitting on terms containing a dash/hyphen (-
) can cause the other bucket to be missed.I suspect this is due to the fact that we are splitting on dashes in bucket keys as a way to manage nested buckets:
kibana/src/legacy/ui/public/agg_types/buckets/_terms_other_bucket_helper.js
Lines 49 to 52 in e48e078
For data that is expected to contain dashes, this can cause "other" buckets to fail to display in visualizations.
Steps to reproduce:
todos1
andtodos2
(listed below)todos1*
and index patterntodos2*
status.keyword
, size 5task.keyword
, size 1, "group other values" enabledtodos1
is missing other buckets due to the dashes contained in thestatus.keyword
data. Everything fromtodos2
behaves as expected.Visualization: todos1 (broken)
Visualization: todos2 (works)
Sample data: todos1 (broken)
Sample data: todos2 (works)
The text was updated successfully, but these errors were encountered: