Skip to content

Add comparator to HyperUniquesFinalizingPostAggregator.#2496

Merged
fjy merged 1 commit intoapache:masterfrom
gianm:hll-finalizing-comparator
Feb 19, 2016
Merged

Add comparator to HyperUniquesFinalizingPostAggregator.#2496
fjy merged 1 commit intoapache:masterfrom
gianm:hll-finalizing-comparator

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Feb 18, 2016

This makes it possible to do groupBys with clauses like "HAVING uniques > 10".
Beforehand you couldn't do it with either an aggregator (because it returns
an HLLV1 which the havingSpec can't understand) or a finalized postaggregator
(because it didn't have a comparator).

Now you can at least do it with a finalizing postaggregator. Trying it with
the aggregator alone still doesn't work.

Added some topN and groupBy tests verifying the comparator, and added an
@Ignore test that should pass if havingSpecs are made work on the aggregator
directly.

@gianm gianm added the Bug label Feb 18, 2016
@fjy fjy added this to the 0.9.0 milestone Feb 18, 2016
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Feb 18, 2016

👍

@drcrallen
Copy link
Copy Markdown
Contributor

Is this a regression or a long standing bug?

@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Feb 18, 2016

@drcrallen I believe it is long standing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

instead of handling nulls explicitly, suggest using Ordering with nullsLast

@fjy fjy modified the milestones: 0.9.1, 0.9.0 Feb 18, 2016
@gianm gianm force-pushed the hll-finalizing-comparator branch from f138f2c to aa0ef74 Compare February 19, 2016 16:32
@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Feb 19, 2016

@drcrallen updated with your comments addressed, could you take another look?

This makes it possible to do groupBys with clauses like "HAVING uniques > 10".
Beforehand you couldn't do it with either an aggregator (because it returns
an HLLV1 which the havingSpec can't understand) or a finalized postaggregator
(because it didn't have a comparator).

Now you can at least do it with a finalizing postaggregator. Trying it with
the aggregator alone still doesn't work.

Added some topN and groupBy tests verifying the comparator, and added an
@ignore test that should pass if havingSpecs are made work on the aggregator
directly.
@gianm gianm force-pushed the hll-finalizing-comparator branch from aa0ef74 to d25c46c Compare February 19, 2016 16:36
@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Feb 19, 2016

also filed issue #2507 for the op that still does not work even after this fix.

@drcrallen
Copy link
Copy Markdown
Contributor

Cool 👍

fjy added a commit that referenced this pull request Feb 19, 2016
Add comparator to HyperUniquesFinalizingPostAggregator.
@fjy fjy merged commit 8a41f03 into apache:master Feb 19, 2016
@acslk acslk mentioned this pull request Aug 16, 2016
@gianm gianm deleted the hll-finalizing-comparator branch September 23, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants