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

Update Calcite and Add Test cases #152

Closed
wants to merge 7 commits into from
Closed

Conversation

hsuanyi
Copy link
Contributor

@hsuanyi hsuanyi commented Sep 10, 2015

No description provided.

final String[] expectedPlan = {"Window.*partition \\{\\} order by \\[0\\].*COUNT\\(\\)",
"Scan.*columns=\\[`o_custkey`, `o_orderpriority`\\]"};
final String[] excludedPatterns = {"Scan.*columns=\\[`\\*`\\]"};
test("alter session set `planner.slice_target` = 1");
Copy link
Contributor

Choose a reason for hiding this comment

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

This line seems to be redundant, since line 430 set the same option, right?

@jinfengni
Copy link
Contributor

+1

* being DrillPBError.ErrorType.VALIDATION the given message.
* @param testSqlQuery Test query
*/
protected static void validationErrorHelper(final String testSqlQuery) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use thrownException.expect(new UserExceptionMatcher(VALIDATION, "...")); in unit tests that use this method (rather than defining and using this method)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh. cool. I have never known we could do that :)

@hsuanyi hsuanyi force-pushed the DRILL-TEST branch 2 times, most recently from e05b84c to 99206a4 Compare September 10, 2015 18:46
@hsuanyi
Copy link
Contributor Author

hsuanyi commented Sep 10, 2015

Addressed jinfengni and sudheeshkatkam 's comments, Thanks!!!

@hsuanyi
Copy link
Contributor Author

hsuanyi commented Sep 10, 2015

Will report after done with the tests

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