-
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.
[EEM] Use top_metrics for identity fields lifting (#188315)
This PR converts the identity fields in the latest transform from a `terms` aggregation to a `top_metric` aggregation in an effort to simplify the implementation since we have to convert a terms aggregation from keys to an array of strings. With the `top_metrics` implementation, we just need to use the `dot_expander` processors along with a `set` processor to get a single (non-array) field. --------- Co-authored-by: Chris Cowan <[email protected]>
- Loading branch information
1 parent
a68f812
commit dd126c4
Showing
4 changed files
with
84 additions
and
31 deletions.
There are no files selected for viewing
30 changes: 18 additions & 12 deletions
30
...server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
34 changes: 28 additions & 6 deletions
34
...anager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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