amogh-jahagirdar commented on code in PR #10771:
URL: https://github.com/apache/iceberg/pull/10771#discussion_r1691803561
##########
hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java:
##########
@@ -512,7 +531,10 @@ private boolean isValidateNamespace(Namespace namespace) {
public TableOperations newTableOps(TableIdentifier tableIdentifier) {
String dbName = tableIdentifier.namespace().level(0);
String tableName = tableIdentifier.name();
- return new HiveTableOperations(conf, clients, fileIO, name, dbName,
tableName);
+ HiveTableOperations ops =
+ new HiveTableOperations(conf, clients, fileIO, name, dbName,
tableName);
+fileIOCloser.put(ops, ops.io());
+return ops;
Review Comment:
```suggestion
fileIOCloser.put(ops, ops.io());
return ops;
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]