huaxingao commented on a change in pull request #30154:
URL: https://github.com/apache/spark/pull/30154#discussion_r513603989



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/jdbc/JdbcDialects.scala
##########
@@ -258,6 +258,10 @@ abstract class JdbcDialect extends Serializable {
     s"ALTER TABLE $tableName ALTER COLUMN ${quoteIdentifier(columnName)} SET 
$nullable"
   }
 
+  def getTableCommentQuery(table: String, comment: String): String = {
+    s"COMMENT ON TABLE $table IS '$comment'"

Review comment:
       Seems only MySQL has a way to let user to specify table options such as 
`COMMENT`, `ENGINE`, etc. in `CREATE TABLE`. I use a separate statement for 
MySQL anyway to make it consistent with others.




----------------------------------------------------------------
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]

Reply via email to