You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2016/05/31 15:23:13 UTC

[jira] [Resolved] (HIVE-13635) HiveServer2 shows stack trace when parsing invalid inputs

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

Jesus Camacho Rodriguez resolved HIVE-13635.
--------------------------------------------
       Resolution: Cannot Reproduce
         Assignee:     (was: Takuma Wakamori)
    Fix Version/s: 2.1.0

[~Takuma], I close the issue then as we are wrapping up 2.1.0. Thanks

> HiveServer2 shows stack trace when parsing invalid inputs
> ---------------------------------------------------------
>
>                 Key: HIVE-13635
>                 URL: https://issues.apache.org/jira/browse/HIVE-13635
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Takuma Wakamori
>            Priority: Trivial
>             Fix For: 2.1.0
>
>         Attachments: HIVE-13635.1.patch
>
>
> 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)