cloud-fan commented on a change in pull request #29064:
URL: https://github.com/apache/spark/pull/29064#discussion_r471321476
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -240,6 +240,9 @@ statement
| MSCK REPAIR TABLE multipartIdentifier
#repairTable
| op=(ADD | LIST) identifier (STRING | .*?)
#manageResource
| SET ROLE .*?
#failNativeCommand
+ | SET TIME ZONE interval
#setTimeZone
+ | SET TIME ZONE timezone=(STRING | LOCAL)
#setTimeZone
+ | SET TIME ZONE .*?
#setTimeZone
Review comment:
We are close to the DB2 syntax, except that we support interval and
`LOCAL`, and we don't allow the optional `SESSION` keyword.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]