gengliangwang commented on a change in pull request #35690:
URL: https://github.com/apache/spark/pull/35690#discussion_r818344523
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -1078,6 +1090,8 @@ alterColumnAction
| commentSpec
| colPosition
| setOrDrop=(SET | DROP) NOT NULL
+ | SET defaultExpression
+ | dropDefault=DROP DEFAULT
Review comment:
For supporting the ANSI SQL syntax
```
ALTER TABLE table_name ALTER COLUMN column_name SET DEFAULT expr
ALTER TABLE table_name ALTER COLUMN column_name DROP DEFAULT
```
--
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]