You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Takuma Wakamori (JIRA)" <ji...@apache.org> on 2016/04/28 08:56:13 UTC
[jira] [Created] (HIVE-13635) HiveServer2 shows stack trace when
parsing invalid inputs
Takuma Wakamori created HIVE-13635:
--------------------------------------
Summary: 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
Assignee: 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)