Skip to content

Conversation

@imotov
Copy link
Contributor

@imotov imotov commented Mar 10, 2020

Refactors BoxplotAggregator to reuse parts that are already available in
AbstractTDigestPercentilesAggregator

Follow up for #51948

Refactors BoxplotAggregator to reuse parts that are already available in
AbstractTDigestPercentilesAggregator

Follow up for elastic#51948
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Aggregations)

@imotov imotov requested review from nik9000 and polyfractal and removed request for a team March 10, 2020 20:34
Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

Neat! I haven't given it a super in depth look but as long as you aren't trying to sneak something tricky in I think I get it and I'm all for it.

@polyfractal
Copy link
Contributor

I was just about to LGTM as well, but remembered the histo field in VS branch (and thus soon master) will be changing: #53298

E.g. the Histo VSType and related are moving to XPack where they belong and the histo-specific aggregating logic is getting pulled out of Core. Which means AbstractTDigestPercentilesAggregator is now specifically just about numeric percentiles, and the histo'y bits are separated into a different aggregator in XPack.

I think if we merge we'll end up undoing this in a few weeks. There still might be a way to share code though, haven't looked super closely at how it will mesh up with the VS stuff.

@imotov
Copy link
Contributor Author

imotov commented Mar 11, 2020

Interesting. So, should we close this and then revisit again when #53298 lands?

@polyfractal
Copy link
Contributor

Yeah that might be for the best. Sorry, when I suggested code sharing in the last PR I didn't think about us also moving histo around too :(

@imotov
Copy link
Contributor Author

imotov commented Mar 11, 2020

Well, technically, we didn't have histo support in the PR where reuse was suggested :) I added it later. So, your suggestions was correct at a time and I didn't revisit it later on. Good catch!

@imotov imotov closed this Mar 11, 2020
@imotov imotov deleted the refactor-boxplot branch May 1, 2020 22:27
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.

5 participants