You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alister Roberts (JIRA)" <ji...@apache.org> on 2017/08/17 12:31:02 UTC
[jira] [Commented] (HIVE-16713) Remove wrong judgments of single
and double quotes in "--" comments
[ https://issues.apache.org/jira/browse/HIVE-16713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130323#comment-16130323 ]
Alister Roberts commented on HIVE-16713:
----------------------------------------
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
> Priority: Minor
>
> 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)