hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Sherman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-20167) apostrophe in midline comment fails with ParseException
Date Tue, 24 Jul 2018 18:29:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-20167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554642#comment-16554642
] 

Andrew Sherman commented on HIVE-20167:
---------------------------------------

OK it is a bit more complex. This code in a .q file does fail:

{{select 'hello'; -- testing hive's stomach for apostrophes}}
{{;}}

but this is partly an artifact of QTestUtil (i.e. test infrastructure). 

I can run that same code from a hue client and it works.

The different clients (BeeLine, Hive cli, qtests) do some work to split commands up before
executing them and this is super-annoying and complex code. 

> apostrophe in midline comment fails with ParseException
> -------------------------------------------------------
>
>                 Key: HIVE-20167
>                 URL: https://issues.apache.org/jira/browse/HIVE-20167
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.3.2
>         Environment: Observed on an AWS EMR cluster. 
> Hive cli, executing script from bash with "hive -f ..." (not interactive).
>  
>            Reporter: Trey Fore
>            Priority: Minor
>
> This line causes a ParseException:
> {{    , member_id string                  --  standardizing from client's
memberID}}
> When the apostrophe is removed, leaving:
> {{    , member_id string                  --  standardizing from clients
memberID}}
> the line is parsed correctly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message