Skip to content

[Transform] add support for filter aggregation #52483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 21, 2020

Conversation

hendrikmuhs
Copy link

add support for filter aggregations, refactor code for sub-aggregation support in mapping deduction

fixes #52151

Note: Dear reviewer, please start with 78b63e3

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml/Transform)

@benwtrent benwtrent self-requested a review February 18, 2020 16:40
Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

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

I really like how this recursive parsing and dot delimited naming of fields work so well :).

@hendrikmuhs hendrikmuhs force-pushed the transform-filter-support branch from 78b63e3 to 68aeabe Compare February 20, 2020 13:24
Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

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

minor observation. Otherwise, looks good :). Super excited to have these in transforms!

subAgg.getName(),
getExtractor(subAgg).value(
subAgg,
fieldTypeMap.get(subLookupFieldPrefix + "." + subAgg.getName()),
Copy link
Member

Choose a reason for hiding this comment

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

It strikes me that supplying fieldType is no longer necessary.

Anything that desires to know fieldType could look it up via its own agg name combined with the prefix (if not empty).

@hendrikmuhs
Copy link
Author

run elasticsearch-ci/bwc
run elasticsearch-ci/default-distro

@hendrikmuhs
Copy link
Author

run elasticsearch-ci/bwc

2 similar comments
@hendrikmuhs
Copy link
Author

run elasticsearch-ci/bwc

@hendrikmuhs
Copy link
Author

run elasticsearch-ci/bwc

@hendrikmuhs hendrikmuhs force-pushed the transform-filter-support branch from 8f444d7 to 0d8d6d0 Compare February 21, 2020 11:02
@hendrikmuhs hendrikmuhs merged commit 075fee2 into elastic:master Feb 21, 2020
hendrikmuhs pushed a commit that referenced this pull request Feb 21, 2020
add support for filter aggregations, refactor code for sub-aggregation support in mapping
deduction

fixes #52151
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.

[Transform] add support for filter aggregation
4 participants