MaxGekk commented on code in PR #51335:
URL: https://github.com/apache/spark/pull/51335#discussion_r2177523235
##########
sql/api/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4:
##########
@@ -1349,32 +1362,24 @@ type
| FLOAT | REAL
| DOUBLE
| DATE
- | TIME
- | TIMESTAMP | TIMESTAMP_NTZ | TIMESTAMP_LTZ
- | STRING collateClause?
- | CHARACTER | CHAR
- | VARCHAR
+ | TIMESTAMP_LTZ | TIMESTAMP_NTZ | TIMESTAMP (WITHOUT TIME ZONE)?
| BINARY
- | DECIMAL | DEC | NUMERIC
| VOID
| INTERVAL
| VARIANT
- | ARRAY | STRUCT | MAP
- | unsupportedType=identifier
+ ;
+
+primitiveType
+ : primitiveTypeWithParameters
+ | primitiveTypeWithoutParameters
+ | unsupportedType=identifier (LEFT_PAREN INTEGER_VALUE(COMMA
INTEGER_VALUE)* RIGHT_PAREN)?
Review Comment:
what if we get an `unsupportedType` with a suffix like: `TIME WITH TIME
ZONE`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]