Skip to content

Conversation

@zjffdu
Copy link
Contributor

@zjffdu zjffdu commented May 6, 2020

What is this PR for?

Before this PR, user have to set property default.splitQueries to enable multiple queries in one paragraph, this PR remove this property, this PR remove this property, and make multiple sql query in support by default.

What type of PR is it?

[Feature | Documentation]

Todos

  • - Task

What is the Jira issue?

How should this be tested?

  • Unit test is updated

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

}

List<String> sqlArray = sqlSplitter.splitSql(sql);
for (int i = 0; i < sqlArray.size(); i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

a For-Each Loop would be nicer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

Comment on lines 691 to 693
List<String> sqlArray = sqlSplitter.splitSql(sql);
for (int i = 0; i < sqlArray.size(); i++) {
String sqlToExecute = sqlArray.get(i);
Copy link
Contributor

Choose a reason for hiding this comment

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

for-each loop would look nicer :-)

Copy link
Contributor

@alexott alexott left a comment

Choose a reason for hiding this comment

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

LGTM, with small comment

@asfgit asfgit closed this in 1f6de95 May 8, 2020
asfgit pushed a commit that referenced this pull request May 8, 2020
### What is this PR for?

Before this PR, user have to set property `default.splitQueries` to enable multiple queries in one paragraph, this PR remove this property, this PR remove this property, and make multiple sql query in support by default.

### What type of PR is it?
[Feature | Documentation]

### Todos
* [ ] - Task

### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-4797

### How should this be tested?
* Unit test is updated

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <[email protected]>

Closes #3764 from zjffdu/ZEPPELIN-4797 and squashes the following commits:

2323470 [Jeff Zhang] address comment
fcb9e61 [Jeff Zhang] [ZEPPELIN-4797]. Enable multiple sql in jdbc interpreter by default

(cherry picked from commit 1f6de95)
Signed-off-by: Jeff Zhang <[email protected]>
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