Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 67127200B13 for ; Wed, 1 Jun 2016 03:06:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 65981160A46; Wed, 1 Jun 2016 01:06:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AAB2E160A44 for ; Wed, 1 Jun 2016 03:06:13 +0200 (CEST) Received: (qmail 94465 invoked by uid 500); 1 Jun 2016 01:06:12 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 94451 invoked by uid 99); 1 Jun 2016 01:06:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2016 01:06:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C80422C14F8 for ; Wed, 1 Jun 2016 01:06:12 +0000 (UTC) Date: Wed, 1 Jun 2016 01:06:12 +0000 (UTC) From: "Takuma Wakamori (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-13889) HiveServer2 shows stack trace when parsing invalid inputs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Jun 2016 01:06:14 -0000 [ 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' '' > hostB$ Error: Error while compiling statement: FAILED: ParseException line 1:0 cannot recognize input near 'invalid' 'syntax' '' (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)