bowenli86 commented on a change in pull request #8720: [FLINK-12771][hive]
Support ConnectorCatalogTable in HiveCatalog
URL: https://github.com/apache/flink/pull/8720#discussion_r293594483
##########
File path:
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/HiveCatalog.java
##########
@@ -313,6 +327,20 @@ public void createTable(ObjectPath tablePath,
CatalogBaseTable table, boolean ig
throw new DatabaseNotExistException(getName(),
tablePath.getDatabaseName());
}
+ if (table instanceof ConnectorCatalogTable) {
+ ConnectorCatalogTable connectorTable =
connectorTables.get(tablePath);
+
+ if (connectorTable != null &&
!tableExistsInHiveMetastore(tablePath)) {
Review comment:
Good catch! Not sure why I did it that way.... Changed
----------------------------------------------------------------
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]
With regards,
Apache Git Services