[
https://issues.apache.org/jira/browse/HIVE-6684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988827#comment-13988827
]
Lefty Leverenz commented on HIVE-6684:
--------------------------------------
This bug seems like a good thing to document in the wiki for releases 0.12.0
through 0.13.1, especially considering how cryptic the error message is. Does
it also apply to release 0.11.0 without the -f option? (In other words, can a
query provided with the -e option have multiple lines?)
Currently the Beeline user doc doesn't even mention comments. This bug & jira
could be another note for the -f option here:
* [HiveServer2 Clients -- Beeline Command Options
|https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-BeelineCommandOptions]
> Beeline does not accept comments that are preceded by spaces
> ------------------------------------------------------------
>
> Key: HIVE-6684
> URL: https://issues.apache.org/jira/browse/HIVE-6684
> Project: Hive
> Issue Type: Bug
> Components: CLI
> Affects Versions: 0.10.0
> Reporter: Jeremy Beard
> Attachments: HIVE-6684.1.patch
>
>
> Beeline throws an error if single-line comments are indented with spaces.
> This works in the embedded Hive CLI.
> For example:
> SELECT
> -- this is the field we want
> field
> FROM
> table;
> Error: Error while processing statement: FAILED: ParseException line 1:71
> cannot recognize input near '<EOF>' '<EOF>' '<EOF>' in select clause
> (state=42000,code=40000)
--
This message was sent by Atlassian JIRA
(v6.2#6252)