maropu commented on a change in pull request #26847: [SPARK-30214][SQL] Support
COMMENT ON syntax
URL: https://github.com/apache/spark/pull/26847#discussion_r356542741
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
##########
@@ -454,3 +454,14 @@ case class ShowTableProperties(
AttributeReference("key", StringType, nullable = false)(),
AttributeReference("value", StringType, nullable = false)())
}
+
+/**
+ * The logical plan of the COMMENT ON (DATABASE|SCHEMA|NAMESPACE) ... IS ...
command that works for
+ * v2 catalogs.
+ */
+case class CommentOnNamespace(namespace: Seq[String], comment: String) extends
Command
Review comment:
Can you leave some comments about NULL? just like `NULL to drop the comment`;
https://www.postgresql.org/docs/12/sql-comment.html
```
// From the PgSQL document:
text
The new comment, written as a string literal; or NULL to drop the comment.
```
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]