Airblader commented on a change in pull request #15316:
URL: https://github.com/apache/flink/pull/15316#discussion_r598791365



##########
File path: 
flink-connectors/flink-connector-hive/src/test/java/org/apache/flink/connectors/hive/HiveDynamicTableFactoryTest.java
##########
@@ -230,14 +232,16 @@ public void testInvalidOptions() throws Exception {
     }
 
     private DynamicTableSource getTableSource(String tableName) throws 
Exception {
+        TableEnvironmentInternal tableEnvInternal = (TableEnvironmentInternal) 
tableEnv;
         ObjectIdentifier tableIdentifier =
                 ObjectIdentifier.of(hiveCatalog.getName(), "default", 
tableName);
         CatalogTable catalogTable =
                 (CatalogTable) 
hiveCatalog.getTable(tableIdentifier.toObjectPath());
         return FactoryUtil.createTableSource(
                 hiveCatalog,
                 tableIdentifier,
-                catalogTable,
+                (ResolvedCatalogTable)

Review comment:
       Can we use `CatalogManager#resolveCatalogTable` to avoid the cast (same 
a bit below in `HiveLookupJoinITCase`)?




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