hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yongzhi Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-8182) beeline fails when executing multiple-line queries with trailing spaces
Date Mon, 29 Sep 2014 14:00:54 GMT

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

Yongzhi Chen commented on HIVE-8182:
------------------------------------

Is trimming very line a good idea? I think to be consistent with single line case, maybe only
trim last line is better choice. 
My suggestion is add
line = line.trim();
before
if (line.endsWith(";")) { line = line.substring(0, line.length() - 1); }

> beeline fails when executing multiple-line queries with trailing spaces
> -----------------------------------------------------------------------
>
>                 Key: HIVE-8182
>                 URL: https://issues.apache.org/jira/browse/HIVE-8182
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.12.0, 0.13.1
>            Reporter: Yongzhi Chen
>            Assignee: Sergio Peña
>             Fix For: 0.14.0
>
>         Attachments: HIVE-8181.1.patch, HIVE-8182.1.patch
>
>
> As title indicates, when executing a multi-line query with trailing spaces, beeline reports
syntax error: 
> Error: Error while compiling statement: FAILED: ParseException line 1:76 extraneous input
';' expecting EOF near '<EOF>' (state=42000,code=40000)
> If put this query in one single line, beeline succeeds to execute it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message