docete commented on a change in pull request #11892:
URL: https://github.com/apache/flink/pull/11892#discussion_r415484898



##########
File path: 
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/api/internal/TableEnvImpl.scala
##########
@@ -721,6 +721,15 @@ abstract class TableEnvImpl(
             dropViewOperation.isIfExists)
         }
         TableResultImpl.TABLE_RESULT_OK
+      case descOperation: DescribeTableOperation =>
+        val result = catalogManager.getTable(descOperation.getSqlIdentifier)
+        if (result.isPresent) {
+          buildShowResult(Array(result.get().getTable.getSchema.toString))

Review comment:
       IMO the `comment` column is not needed since our SQL parser doesn't 
support column comments(We only support table comment now).




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to