hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r1417763 - in /hive/trunk/ql/src: java/org/apache/hadoop/hive/ql/parse/Hive.g test/results/clientnegative/invalid_tbl_name.q.out
Date Thu, 06 Dec 2012 08:09:41 GMT
Author: namit
Date: Thu Dec  6 08:09:40 2012
New Revision: 1417763

URL: http://svn.apache.org/viewvc?rev=1417763&view=rev
Log:
HIVE-3762 Minor fix for 'tableName' in Hive.g
(Navis via namit)


Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
    hive/trunk/ql/src/test/results/clientnegative/invalid_tbl_name.q.out

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g?rev=1417763&r1=1417762&r2=1417763&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g Thu Dec  6 08:09:40 2012
@@ -1831,8 +1831,12 @@ tableSource
 tableName
 @init { msgs.push("table name"); }
 @after { msgs.pop(); }
-    : (db=Identifier DOT)? tab=Identifier
-    -> ^(TOK_TABNAME $db? $tab)
+    :
+    db=Identifier DOT tab=Identifier
+    -> ^(TOK_TABNAME $db $tab)
+    |
+    tab=Identifier
+    -> ^(TOK_TABNAME $tab)
     ;
 
 viewName

Modified: hive/trunk/ql/src/test/results/clientnegative/invalid_tbl_name.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientnegative/invalid_tbl_name.q.out?rev=1417763&r1=1417762&r2=1417763&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientnegative/invalid_tbl_name.q.out (original)
+++ hive/trunk/ql/src/test/results/clientnegative/invalid_tbl_name.q.out Thu Dec  6 08:09:40
2012
@@ -1,2 +1,2 @@
-FAILED: ParseException line 1:20 cannot recognize input near '-' 'name' '(' in create table
statement
+FAILED: ParseException line 1:13 cannot recognize input near 'invalid' '-' 'name' in table
name
 



Mime
View raw message