You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hari Sankar Sivarama Subramaniyan (JIRA)" <ji...@apache.org> on 2015/05/08 22:59:00 UTC

[jira] [Created] (HIVE-10659) Beeline commands which contains semi-colon as a non-command terminator will fail

Hari Sankar Sivarama Subramaniyan created HIVE-10659:
--------------------------------------------------------

             Summary: 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


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)