You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by GitBox <gi...@apache.org> on 2019/02/28 12:30:24 UTC
[GitHub] hustfeiwang commented on a change in pull request #555:
[HIVE-21345][CLI] Fix the error when hive cliDriver parses sql statement h
semicolon in a pair of double quote
hustfeiwang commented on a change in pull request #555: [HIVE-21345][CLI] Fix the error when hive cliDriver parses sql statement h semicolon in a pair of double quote
URL: https://github.com/apache/hive/pull/555#discussion_r261173192
##########
File path: cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
##########
@@ -445,6 +445,17 @@ public void handle(Signal signal) {
}
break;
case '"':
+ if (!escape) {
Review comment:
> I'm pretty sure the Hive maintainers will want unit tests that cover all of these cases. See https://github.com/apache/hive/blob/master/cli/src/test/org/apache/hadoop/hive/cli/TestCliDriverMethods.java
I hava added the unit test for these cases, when a semicolon in double quote.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services