hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takuma Wakamori (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-13889) HiveServer2 shows stack trace when parsing invalid inputs
Date Wed, 01 Jun 2016 01:06:12 GMT

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

Takuma Wakamori commented on HIVE-13889:
----------------------------------------

[~jcamachorodriguez]
Thank you for pointing it out.
To be honest, I misread 'clone' as 'close'. sorry...

> HiveServer2 shows stack trace when parsing invalid inputs
> ---------------------------------------------------------
>
>                 Key: HIVE-13889
>                 URL: https://issues.apache.org/jira/browse/HIVE-13889
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 2.1.0
>            Reporter: Takuma Wakamori
>            Priority: Trivial
>
> HiveServer2 shows stack trace when parsing invalid syntax.
> How to reproduce:
> {code}
> Input:
> hostA$ hiveserver2
> hostB$ beeline -u jdbc:hive2://localhost:10000 -n user -p pass -e "invalid syntax;"
> Output:
> hostA$ NoViableAltException(26@[])                                                  
                                                                         [0/1248]
>         at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1108)
>         at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:204)
>         at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:444)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:319)
>         at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1199)
>         at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1186)
>         at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:146)
>         at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:218)
> ...
> FAILED: ParseException line 1:0 cannot recognize input near 'invalid' 'syntax' '<EOF>'
> hostB$ Error: Error while compiling statement: FAILED: ParseException line 1:0 cannot
recognize input near 'invalid' 'syntax' '<EOF>' (state=42000,code=40000)
> {code}
> This issue is related to the post of Hive developer mailing list:
> http://mail-archives.apache.org/mod_mbox/hive-dev/201604.mbox/%3CCAOLfT9AaKZ8Nt77QnvrNcxWrQ_1htaj9C0UOsnN5HheoTzM6DQ%40mail.gmail.com%3E



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

Mime
View raw message