Skip to content

Improper getter value is fixed.#6930

Merged
clintropolis merged 2 commits intoapache:masterfrom
kamaci:feature/aggregator-getter
Feb 7, 2019
Merged

Improper getter value is fixed.#6930
clintropolis merged 2 commits intoapache:masterfrom
kamaci:feature/aggregator-getter

Conversation

@kamaci
Copy link
Copy Markdown
Member

@kamaci kamaci commented Jan 28, 2019

No description provided.

Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

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

Nice catch 👍

Is it worth adding a "serde" test?

@kamaci
Copy link
Copy Markdown
Member Author

kamaci commented Jan 29, 2019

Do you mean adding a method to ApproximateHistogramPostAggregatorTest which extends BucketsPostAggregator?

@leventov
Copy link
Copy Markdown
Member

Didn't you find this bug using some sort of inspection or static analysis?

@gianm
Copy link
Copy Markdown
Contributor

gianm commented Jan 29, 2019

Do you mean adding a method to ApproximateHistogramPostAggregatorTest which extends BucketsPostAggregator?

I'd suggest adding a BucketsPostAggregatorTest that has a testSerde() method similar to ConstantPostAggregatorTest.

@kamaci
Copy link
Copy Markdown
Member Author

kamaci commented Jan 29, 2019

@gianm We can merge this PR if it is OK and I can create another PR which includes all tests for BucketsPostAggregatorTest?

@jihoonson
Copy link
Copy Markdown
Contributor

I think the serde unit test should be included here because it fixes a bug.

@gianm
Copy link
Copy Markdown
Contributor

gianm commented Jan 29, 2019

I agree with @jihoonson, it is best to add a unit test in the same patch that fixes a bug.

@kamaci
Copy link
Copy Markdown
Member Author

kamaci commented Jan 29, 2019

👍

@jon-wei jon-wei added this to the 0.14.0 milestone Feb 1, 2019
@kamaci
Copy link
Copy Markdown
Member Author

kamaci commented Feb 6, 2019

Do you mean adding a method to ApproximateHistogramPostAggregatorTest which extends BucketsPostAggregator?

I'd suggest adding a BucketsPostAggregatorTest that has a testSerde() method similar to ConstantPostAggregatorTest.

I've updated my PR.

Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding the test! 👍 after CI

@kamaci
Copy link
Copy Markdown
Member Author

kamaci commented Feb 7, 2019

CI checks are OK 👍

@clintropolis clintropolis merged commit 3097562 into apache:master Feb 7, 2019
clintropolis pushed a commit to clintropolis/druid that referenced this pull request Feb 7, 2019
* Improper getter value is fixed.

* Test class is added.
fjy pushed a commit that referenced this pull request Feb 8, 2019
* Improper getter value is fixed.

* Test class is added.
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.

6 participants