You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2022/10/21 07:21:01 UTC

[jira] [Updated] (HIVE-26175) Fixed ParseException caused by unpaired quotation marks in a line of comments

     [ https://issues.apache.org/jira/browse/HIVE-26175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stamatis Zampetakis updated HIVE-26175:
---------------------------------------
    Fix Version/s:     (was: 4.0.0)

I cleared the fixVersion field since this ticket is still open. Please review this ticket and if the fix is already committed to a specific version please set the version accordingly and mark the ticket as RESOLVED.

According to the [JIRA guidelines|https://cwiki.apache.org/confluence/display/Hive/HowToContribute] the fixVersion should be set only when the issue is resolved/closed.

> Fixed ParseException caused by unpaired quotation marks in a line of comments
> -----------------------------------------------------------------------------
>
>                 Key: HIVE-26175
>                 URL: https://issues.apache.org/jira/browse/HIVE-26175
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Parser
>    Affects Versions: 3.1.3
>            Reporter: renjianting
>            Assignee: renjianting
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Unpaired quotation marks in a line of comments causes ParseException : 
> task.sql
> {code:java}
> select 1 -- comment I'm col1"xxx
> ;
> select 2 -- comment I'm col2"xxx
> ;{code}
> The following error occurs when I run a similar task using the "hive -f task.sql" command :
> {code:java}
> FAILED: ParseException line 2:0 cannot recognize input near '1' ';' 'select' in constant{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)