Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 125A918498 for ; Fri, 8 May 2015 22:44:00 +0000 (UTC) Received: (qmail 53520 invoked by uid 500); 8 May 2015 22:44:00 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 53505 invoked by uid 500); 8 May 2015 22:44:00 -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 53495 invoked by uid 99); 8 May 2015 22:43:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 22:43:59 +0000 Date: Fri, 8 May 2015 22:43:59 +0000 (UTC) From: "Hari Sankar Sivarama Subramaniyan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-10659) Beeline commands which contains semi-colon as a non-command terminator will fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-10659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hari Sankar Sivarama Subramaniyan updated HIVE-10659: ----------------------------------------------------- Attachment: HIVE-10659.1.patch cc-ing [~thejas] / [~sushanth] for review. I tested this with the initially committed patch for HIVE-7018 and it seems to resolve the issue that we found in HIVE-10614. Once this patch goes in, we should be able to get HIVE-7018 in as well. Thanks Hari > Beeline commands which contains semi-colon as a non-command terminator will fail > -------------------------------------------------------------------------------- > > Key: HIVE-10659 > URL: https://issues.apache.org/jira/browse/HIVE-10659 > Project: Hive > Issue Type: Bug > Reporter: Hari Sankar Sivarama Subramaniyan > Assignee: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-10659.1.patch > > > Consider beeline for connecting to mysql and creating commands involving stored procedures. MySQL stored procedures have semi-colon as the statement terminator. Since this coincides with beeline's only available command terminator , semi-colon, beeline will not able to execute the original command successfully. > The above scenario can happen when Hive SchemaTool is used to upgrade a mysql metastore db which contains stored procedure in the script(as the one introduced initially by HIVE-7018). As of now, we cannot have any stored procedures as part of MySQL scripts because schemaTool uses beeline as the jdbc client to connect to MySQL. This is a serious limitation and needs to be fixed by providing an option to beeline to not use ";" as the command delimiter and process the entire line send to it as a single command. -- This message was sent by Atlassian JIRA (v6.3.4#6332)