-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AggConfigs] Consider root level filters buckets correctly when build…
…ing other terms bucket (#165656) ## Summary Fixes #165487 This PR fixes the `Other` bucket problem when the filter is used at root level with a nested `terms` agg. This is visible when using the `Split metric by` in Lens in a table visualization. Used the `sum` to easily compare the results: <img width="619" alt="Screenshot 2023-09-05 at 11 12 46" src="https://github.com/elastic/kibana/assets/924948/0b729cd2-027b-4bc4-a481-4f8d8fa5e868"> Now introducing a basic `*` Filter as `split metric by`: <img width="637" alt="Screenshot 2023-09-05 at 11 12 52" src="https://github.com/elastic/kibana/assets/924948/31bf5814-1e30-4ff4-a9ec-1da60f9f7841"> And with a more complex filter (1098 + 564 = 1662): <img width="624" alt="Screenshot 2023-09-05 at 11 12 36" src="https://github.com/elastic/kibana/assets/924948/064f7496-7a90-4fbd-8ebf-a99c3a024125"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Stratoula Kalafateli <[email protected]>
- Loading branch information
Showing
2 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters