Skip to content

greater-than/less-than/equal-to havingSpec to call AggregatorFactory.finalizeComputation(..)#4883

Merged
gianm merged 5 commits intoapache:masterfrom
himanshug:fix_having
Oct 16, 2017
Merged

greater-than/less-than/equal-to havingSpec to call AggregatorFactory.finalizeComputation(..)#4883
gianm merged 5 commits intoapache:masterfrom
himanshug:fix_having

Conversation

@himanshug
Copy link
Copy Markdown
Contributor

@himanshug himanshug commented Sep 29, 2017

Fixes #4859 and #2507

@himanshug
Copy link
Copy Markdown
Contributor Author

its failing tests in GroupByQueryRunnerTest which expect exceptions with having clause on complex metrics, will fix those once the solution proposed here is in agreement.

@himanshug
Copy link
Copy Markdown
Contributor Author

just noticed #2507 , that should be fixed with this patch.

@himanshug himanshug requested a review from gianm October 4, 2017 14:39
Copy link
Copy Markdown
Contributor

@gianm gianm left a comment

Choose a reason for hiding this comment

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

LGTM

@gianm
Copy link
Copy Markdown
Contributor

gianm commented Oct 13, 2017

@himanshug could you please fix the conflict, and then feel free to merge yourself.

@gianm gianm mentioned this pull request Oct 13, 2017
@gianm gianm merged commit a7e802c into apache:master Oct 16, 2017
gianm added a commit to gianm/druid that referenced this pull request Oct 31, 2017
- Uses the technique from apache#4883 on DimFilterHavingSpec too.
- Also uses Transformers from apache#4890, necessitating a move of that and other
  related classes from druid-server to druid-processing. They probably make
  more sense there anyway.
- Adds a SQL query test.

Fixes apache#4957.
fjy pushed a commit that referenced this pull request Nov 1, 2017
* Fix havingSpec on complex aggregators.

- Uses the technique from #4883 on DimFilterHavingSpec too.
- Also uses Transformers from #4890, necessitating a move of that and other
  related classes from druid-server to druid-processing. They probably make
  more sense there anyway.
- Adds a SQL query test.

Fixes #4957.

* Remove unused import.
gianm pushed a commit to implydata/druid-public that referenced this pull request Nov 15, 2017
…finalizeComputation(..) (apache#4883)

* greater-than/less-than/equal-to havingSpec to call AggregatorFactory.finalizeComputation(..)

* fix the unit test and expect having to work on hyperUnique agg

* test fix

* fix style errors
gianm added a commit to implydata/druid-public that referenced this pull request Nov 15, 2017
* Fix havingSpec on complex aggregators.

- Uses the technique from apache#4883 on DimFilterHavingSpec too.
- Also uses Transformers from apache#4890, necessitating a move of that and other
  related classes from druid-server to druid-processing. They probably make
  more sense there anyway.
- Adds a SQL query test.

Fixes apache#4957.

* Remove unused import.
gianm pushed a commit to implydata/druid-public that referenced this pull request Dec 6, 2017
…finalizeComputation(..) (apache#4883)

* greater-than/less-than/equal-to havingSpec to call AggregatorFactory.finalizeComputation(..)

* fix the unit test and expect having to work on hyperUnique agg

* test fix

* fix style errors
gianm added a commit to implydata/druid-public that referenced this pull request Dec 6, 2017
* Fix havingSpec on complex aggregators.

- Uses the technique from apache#4883 on DimFilterHavingSpec too.
- Also uses Transformers from apache#4890, necessitating a move of that and other
  related classes from druid-server to druid-processing. They probably make
  more sense there anyway.
- Adds a SQL query test.

Fixes apache#4957.

* Remove unused import.
@himanshug himanshug deleted the fix_having branch December 29, 2017 17:31
@jon-wei jon-wei added this to the 0.12.0 milestone Jan 5, 2018
gianm added a commit to gianm/druid that referenced this pull request Feb 6, 2018
Fixes two things:

1. An improper double-to-long cast when comparing double metrics to any
   kind of value, which was a regression from apache#4883.
2. An improper double-to-long cast when comparing a long/int metric to a
   double/float value: the value was cast to long/int, drawing strange
   conclusions like int 100 matching a havingSpec of equalTo(100.5).
gianm added a commit that referenced this pull request Feb 6, 2018
* Fix two improper casts in HavingSpecMetricComparator.

Fixes two things:

1. An improper double-to-long cast when comparing double metrics to any
   kind of value, which was a regression from #4883.
2. An improper double-to-long cast when comparing a long/int metric to a
   double/float value: the value was cast to long/int, drawing strange
   conclusions like int 100 matching a havingSpec of equalTo(100.5).

* Add comments.

* Remove extraneous comment.

* Simplify code a bit.
gianm added a commit to gianm/druid that referenced this pull request Feb 6, 2018
* Fix two improper casts in HavingSpecMetricComparator.

Fixes two things:

1. An improper double-to-long cast when comparing double metrics to any
   kind of value, which was a regression from apache#4883.
2. An improper double-to-long cast when comparing a long/int metric to a
   double/float value: the value was cast to long/int, drawing strange
   conclusions like int 100 matching a havingSpec of equalTo(100.5).

* Add comments.

* Remove extraneous comment.

* Simplify code a bit.
jon-wei pushed a commit that referenced this pull request Feb 7, 2018
* Fix two improper casts in HavingSpecMetricComparator.

Fixes two things:

1. An improper double-to-long cast when comparing double metrics to any
   kind of value, which was a regression from #4883.
2. An improper double-to-long cast when comparing a long/int metric to a
   double/float value: the value was cast to long/int, drawing strange
   conclusions like int 100 matching a havingSpec of equalTo(100.5).

* Add comments.

* Remove extraneous comment.

* Simplify code a bit.
gianm added a commit to implydata/druid-public that referenced this pull request Feb 7, 2018
* Fix two improper casts in HavingSpecMetricComparator.

Fixes two things:

1. An improper double-to-long cast when comparing double metrics to any
   kind of value, which was a regression from apache#4883.
2. An improper double-to-long cast when comparing a long/int metric to a
   double/float value: the value was cast to long/int, drawing strange
   conclusions like int 100 matching a havingSpec of equalTo(100.5).

* Add comments.

* Remove extraneous comment.

* Simplify code a bit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants