twalthr commented on a change in pull request #15606:
URL: https://github.com/apache/flink/pull/15606#discussion_r613130692



##########
File path: 
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/operations/SqlCreateTableConverter.java
##########
@@ -89,7 +89,10 @@ private CatalogTable createCatalogTable(SqlCreateTable 
sqlCreateTable) {
         if (sqlCreateTable.getTableLike().isPresent()) {
             SqlTableLike sqlTableLike = sqlCreateTable.getTableLike().get();
             CatalogTable table = lookupLikeSourceTable(sqlTableLike);
-            sourceTableSchema = table.getSchema();
+            sourceTableSchema =

Review comment:
       We can do this in a follow-up issue. This fix is good for now. But you 
are right that this class should be removed. We should discuss how this will 
happen. Currently, the `LIKE` is only available to SQL users. If we want to 
support this for Table API users as well, we should port the utility to 
`table-api-java`.




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


Reply via email to