Skip to content

Commit e3cb939

Browse files
authored
HIVE-29177: Addendum: Fix ANTLR Warning (#6247)
1 parent 3d58586 commit e3cb939

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

parser/src/java/org/apache/hadoop/hive/ql/parse/FromClauseParser.g

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,8 @@ databaseName
235235
@init { gParent.pushMsg("database name", state); }
236236
@after { gParent.popMsg(state); }
237237
:
238-
catalog=identifier DOT db=identifier?
239-
-> ^(TOK_DBNAME $catalog $db)
240-
|
241-
db=identifier
242-
-> ^(TOK_DBNAME $db)
238+
(catalog=identifier DOT)? db=identifier
239+
-> ^(TOK_DBNAME $catalog? $db)
243240
;
244241

245242
tableName

0 commit comments

Comments
 (0)