From 9b272b63c9dc507467b40d21edcd0a7b9174b80b Mon Sep 17 00:00:00 2001 From: Kent Yao Date: Wed, 11 Dec 2019 19:40:33 +0800 Subject: [PATCH] comments --- .../catalyst/plans/logical/v2Commands.scala | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala index c733168aa55e9..cc74e708a34d8 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala @@ -456,12 +456,25 @@ case class ShowTableProperties( } /** - * The logical plan of the COMMENT ON (DATABASE|SCHEMA|NAMESPACE) ... IS ... command that works for - * v2 catalogs. + * The logical plan that defines or changes the comment of an NAMESPACE for v2 catalogs. + * + * {{{ + * COMMENT ON (DATABASE|SCHEMA|NAMESPACE) namespaceIdentifier IS ('text' | NULL) + * }}} + * + * where the `text` is the new comment written as a string literal; or `NULL` to drop the comment. + * */ case class CommentOnNamespace(namespace: Seq[String], comment: String) extends Command /** - * The logical plan of the COMMENT ON TABLE ... IS ... command that works for v2 catalogs. + * The logical plan that defines or changes the comment of an TABLE for v2 catalogs. + * + * {{{ + * COMMENT ON TABLE tableIdentifier IS ('text' | NULL) + * }}} + * + * where the `text` is the new comment written as a string literal; or `NULL` to drop the comment. + * */ case class CommentOnTable(namespace: Seq[String], comment: String) extends Command