Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/19392#discussion_r142184575
--- Diff:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4 ---
@@ -510,11 +510,15 @@ rowFormat
;
tableIdentifier
- : (db=identifier '.')? table=identifier
+ : (db=identifierPart '.')? table=identifierPart
;
functionIdentifier
- : (db=identifier '.')? function=identifier
+ : (db=identifierPart '.')? function=identifierPart
+ ;
+
+identifierPart
+ : identifier | BIGINT_LITERAL | SMALLINT_LITERAL | TINYINT_LITERAL |
BYTELENGTH_LITERAL
--- End diff --
`INTEGER_VALUE` should not be here because it cannot be an identifier.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]