dawidwys commented on a change in pull request #12335:
URL: https://github.com/apache/flink/pull/12335#discussion_r435976235



##########
File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java
##########
@@ -490,8 +490,11 @@ private void insertIntoInternal(UnresolvedIdentifier 
unresolvedIdentifier, Table
        private Optional<CatalogQueryOperation> 
scanInternal(UnresolvedIdentifier identifier) {
                ObjectIdentifier tableIdentifier = 
catalogManager.qualifyIdentifier(identifier);
 
-               return catalogManager.getTable(tableIdentifier)
-                       .map(t -> new CatalogQueryOperation(tableIdentifier, 
t.getTable().getSchema()));
+               return catalogManager.getTable(tableIdentifier).map(t -> {
+                       CatalogTableSchemaResolver resolver = new 
CatalogTableSchemaResolver(parser);

Review comment:
       In the end my reasoning is that this logic should be pushed as close to 
the catalog as possible. If we cannot push it all the way to the creation of 
the table, maybe at least we can push it into the single place when we look up 
that table.




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