[ https://issues.apache.org/jira/browse/HIVE-12943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120789#comment-15120789 ]
ASF GitHub Bot commented on HIVE-12943: --------------------------------------- GitHub user kasjain opened a pull request: https://github.com/apache/hive/pull/65 HIVE-12943: Fixing USE DEFAULT by adding the 'default' keyword to grammer Added the "default" keyword to the grammer files HiveParser.g, HiveLexer.g and Identifier.g You can merge this pull request into a Git repository by running: $ git pull https://github.com/kasjain/hive branch-1.2 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/hive/pull/65.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #65 ---- commit ae0e374637b39f4847c0413d4fdbe69a2d7f1fb9 Author: Kashish Jain <kashish.j...@guavus.com> Date: 2016-01-28T05:31:09Z HIVE-12943: Fixing USE DEFAULT by adding the 'default' keyword to grammer ---- > Use default doesnot work in Hive 1.2.1 > -------------------------------------- > > Key: HIVE-12943 > URL: https://issues.apache.org/jira/browse/HIVE-12943 > Project: Hive > Issue Type: Bug > Components: Database/Schema > Affects Versions: 1.2.1 > Reporter: Kashish Jain > Fix For: 1.3.0, 1.2.1, 1.2.2 > > > "USE Default" does not work with the latest hive 1.2.1 > The message is > " > Cannot recognize input near 'default' '<EOF>' '<EOF>' in switch database > statement; line 1 pos 4 > NoViableAltException(81@[]) > at > org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:11577) > at > org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:46055) > " -- This message was sent by Atlassian JIRA (v6.3.4#6332)