[
https://issues.apache.org/jira/browse/HIVE-16713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130323#comment-16130323
]
Alister Roberts edited comment on HIVE-16713 at 8/17/17 12:33 PM:
------------------------------------------------------------------
This behaviour is a regression - a comment with an embedded apostrophe worked
fine in Hive 2.1.0, but fails in Hive 2.3.0 for this reason.
It should be noted that the behaviour does not manifest itself when testing
using the Hive CLI - I guess it does some processing that masks the problem.
was (Author: gatelogic):
This behaviour is a regression - a comment with an embedded apostrophe worked
fine in Hive 2.1.0, but fails in Hive 2.3.0 for this reason.
> Remove wrong judgments of single and double quotes in "--" comments
> -------------------------------------------------------------------
>
> Key: HIVE-16713
> URL: https://issues.apache.org/jira/browse/HIVE-16713
> Project: Hive
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Liu Chunxiao
> Assignee: Liu Chunxiao
>
> single quote in "--" comments will lead to parse exception
> e.g. sql files which contain the following:
> select --...user's...
> count(*) from aa;
> will regard the single quote in comment "user's" as a quote in sql statement.
> So ";" after aa will be regarded as a ";" in single quote and will not be
> split by the parser.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)