phet commented on code in PR #4058:
URL: https://github.com/apache/gobblin/pull/4058#discussion_r1811456671


##########
gobblin-data-management/src/main/java/org/apache/gobblin/data/management/copy/iceberg/BaseIcebergCatalog.java:
##########
@@ -43,7 +44,10 @@ protected BaseIcebergCatalog(String catalogName, Class<? 
extends Catalog> compan
   @Override
   public IcebergTable openTable(String dbName, String tableName) {
     TableIdentifier tableId = TableIdentifier.of(dbName, tableName);
-    return new IcebergTable(tableId, calcDatasetDescriptorName(tableId), 
getDatasetDescriptorPlatform(), createTableOperations(tableId), 
this.getCatalogUri());
+    return new IcebergTable(tableId, calcDatasetDescriptorName(tableId), 
getDatasetDescriptorPlatform(),
+        createTableOperations(tableId),
+        this.getCatalogUri(),
+        loadTableInstance(tableId));

Review Comment:
   it's OK to raise the exception at creation time rather than upon first-use.  
in fact, that's arguably even better



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

To unsubscribe, e-mail: dev-unsubscr...@gobblin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to