eric-maynard commented on code in PR #1037:
URL: https://github.com/apache/polaris/pull/1037#discussion_r2006523716
##########
service/common/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java:
##########
@@ -1189,6 +1190,21 @@ private class BasePolarisTableOperations extends
BaseMetastoreTableOperations {
this.tableFileIO = defaultFileIO;
}
+ /**
+ * Return the currently loaded {@link IcebergTableLikeEntity} without
checking for table
+ * updates. Does not refresh the table entity if not already available,
call {@link
+ * TableOperations#current()} or {@link TableOperations#refresh()} first
to ensure it is
+ * resolved. NOTE: This may be mismatched with the currently loaded
metadata if commits are
+ * performed between calling this method and {@link
TableOperations#current()} as this entity is
+ * populated on commits, unlike the current TableMetadata.
+ *
+ * @return the currently loaded {@link IcebergTableLikeEntity}, null if
the table entity has not
+ * been resolved yet
+ */
+ public IcebergTableLikeEntity currentTableEntity() {
Review Comment:
cc @flyrain for his review; this looks like a place where a DAO would save us
--
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]