-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[CALCITE-5265] Select operator' parentheses should be same with Union operator #2910
Conversation
/** Test case for | ||
* <a href="https://issues.apache.org/jira/browse/CALCITE-5265">[CALCITE-5265] | ||
* Select operator' parentheses should be same with Union operator</a>. */ | ||
@Test void testInsertValueWithDynamicParams() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any tests which cover what Julian has mentioned in the JIRA comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many unit tests cover "insert into aTable select ? from bTable" in SqlParserTest.java. And RelToSqlConverterTest::testInsertValuesWithDynamicParams will cover "insert into aTable select ? from bTable union all select ? from cTable" mentioned by Julian in JIRA comment.
@@ -6352,6 +6352,20 @@ private void checkLiteral2(String expression, String expected) { | |||
.withCalcite().ok(expectedCalciteX); | |||
} | |||
|
|||
/** Test case for | |||
* <a href="https://issues.apache.org/jira/browse/CALCITE-5265">[CALCITE-5265] | |||
* Select operator' parentheses should be same with Union operator</a>. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment should also be adapted according to the changes in JIRA title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@l4wei Thanks the updating, the PR LGTM now, merging.
@l4wei I didn't notice Julian has another comment when I commented with "LGTM", could you add another test which addresses Julian's comment? |
OK |
I have added test that mentioned by Julian' last comment in third commit in this PR. FYI |
…ound SELECT in INSERT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will merge in 24 hours if there is no more objections appear.
…ound SELECT in INSERT This closes apache#2910
…ound SELECT in INSERT This closes apache#2910
remove necessary parentheses on select clause.