Skip to content

[ZEPPELIN-5299] Comment at end of query causes query to be ignored#4081

Closed
zjffdu wants to merge 1 commit intoapache:masterfrom
zjffdu:ZEPPELIN-5299
Closed

[ZEPPELIN-5299] Comment at end of query causes query to be ignored#4081
zjffdu wants to merge 1 commit intoapache:masterfrom
zjffdu:ZEPPELIN-5299

Conversation

@zjffdu
Copy link
Contributor

@zjffdu zjffdu commented Mar 26, 2021

What is this PR for?

This is to fix the corner case that when the comment is at the end of query, the query will be skipped due to bug in SqlSplitter.
This PR fix the bug in SqlSplitter and also add UT

What type of PR is it?

[Bug Fix ]

Todos

  • - Task

What is the Jira issue?

How should this be tested?

  • UT is added

Screenshots (if appropriate)

Questions:

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

Copy link
Contributor

@cuspymd cuspymd left a comment

Choose a reason for hiding this comment

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

Looks good!!

@zjffdu
Copy link
Contributor Author

zjffdu commented Apr 2, 2021

Will merge if no more comment

@zjffdu zjffdu changed the title [ZEPPELIN-5299]. Comment at end of query causes query to be ignored [ZEPPELIN-5299] Comment at end of query causes query to be ignored Apr 7, 2021
@asfgit asfgit closed this in e0e2ca5 Apr 7, 2021
asfgit pushed a commit that referenced this pull request Apr 7, 2021
### What is this PR for?

This is to fix the corner case that when the comment is at the end of query, the query will be skipped due to bug in SqlSplitter.
This PR fix the bug in SqlSplitter and also add UT

### What type of PR is it?
[Bug Fix ]

### Todos
* [ ] - Task

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

### How should this be tested?
* UT is added

### 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 <zjffdu@apache.org>

Closes #4081 from zjffdu/ZEPPELIN-5299 and squashes the following commits:

8a376b9 [Jeff Zhang] [ZEPPELIN-5299] Comment at end of query causes query to be ignored

(cherry picked from commit e0e2ca5)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
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.

2 participants

Comments