Skip to content
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

Enhanced StarTreeIntegrationTest to test group-by results. Added more query of different types to increase test coverage. #244

Merged
merged 1 commit into from
Jun 28, 2016

Conversation

mayankshriv
Copy link
Contributor

No description provided.

double[] actualSums = actualResult.get(expectedKey);

for (int j = 0; j < expectedSums.length; j++) {
Assert.assertEquals(expectedSums[j], actualSums[j],
Copy link
Contributor

Choose a reason for hiding this comment

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

The convention is to put actual value as first argument and expected as second. In the error message, no need to explicitly log actual and expected value since they will already show up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

"select sum(m1) from T where d1 <> 'd1-v1' group by d2",
"select sum(m1) from T where d1 in ('d1-v1', 'd1-v2') group by d2",
"select sum(m1) from T where d1 in ('d1-v1', 'd1-v2') and d2 not in ('d2-v1') group by d3",
"select sum(m1) from T where d1 in ('d1-v1', 'd1-v2') and d2 not in ('d2-v1') group by d3, d4"
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a query pattern of "select sum(m1), sum(m2) from T where..."?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As mentioned in the comment, the test runs aggregation on all metric columns, not just the one in the query, to be more exhaustive.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I see. Then it's fine 👍

@Jackie-Jiang
Copy link
Contributor

LGTM besides the comments.

@codecov-io
Copy link

Current coverage is 45.84%

No coverage report found for master at 14b0d68.

Powered by Codecov. Last updated by 14b0d68...f81ff1b

Added more query of different types to increase test coverage.
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.

None yet

3 participants