[
https://issues.apache.org/jira/browse/HIVE-21345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16780472#comment-16780472
]
feiwang commented on HIVE-21345:
--------------------------------
Sorry, I found this case in spark.
Spark dependent on hive-1.2.1 which process these case incorrectly.
So I override the splitSemicolon method in SparkSQLCLIDriver with scala.
However, scala is different to java.
Scala does not need break to break case.
I will close this ISSUE.
> Hive CLIDriver parses sql statement incorrectly
> -------------------------------------------------
>
> Key: HIVE-21345
> URL: https://issues.apache.org/jira/browse/HIVE-21345
> Project: Hive
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.1.1, 2.3.4
> Reporter: feiwang
> Assignee: feiwang
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-21345.01.patch
>
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> Hive parse statement incorrectly when there is a semicolon in a pair of
> double quote.
> For example:
> The statement:
> {code:java}
> select * from table_a where column_a not like "%;";{code}
> Will be parsed to:
> {code:java}
> select * from table_a where column_a not like "%{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)