yuqi1129 commented on code in PR #8189:
URL: https://github.com/apache/gravitino/pull/8189#discussion_r2352106421
##########
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ClosableHiveCatalog.java:
##########
@@ -60,4 +72,64 @@ public void close() throws IOException {
}
});
}
+
+ @FunctionalInterface
+ interface Executable<R> {
+ R run() throws Exception;
+ }
+
+ public <R> R execute(Executable<R> runnable) {
+ try {
+ return runnable.run();
+ } catch (Exception e) {
+ LOGGER.error("Failed to execute runnable: {}", runnable, e);
+ throw new RuntimeException(e);
+ }
+ }
+
+ public Catalog.TableBuilder buildTable(TableIdentifier identifier, Schema
schema) {
Review Comment:
@FANNG1 @agnes-xinyi-lu
The code has been updated. Please review it again, thanks.
--
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]