jerryshao commented on code in PR #9502:
URL: https://github.com/apache/gravitino/pull/9502#discussion_r2638803492
##########
core/src/main/java/org/apache/gravitino/meta/CatalogEntity.java:
##########
@@ -155,6 +156,12 @@ public CatalogInfo
toCatalogInfoWithResolvedProps(Map<String, String> resolvedPr
id, name, type, provider, comment, resolvedProperties, auditInfo,
namespace);
}
+ @Override
+ public boolean managed() {
+ return type == Catalog.Type.FILESET
+ || (type == Catalog.Type.RELATIONAL &&
provider.equalsIgnoreCase("lakehouse-generic"));
Review Comment:
The problem is that our current interface is hard to get `Catalog` or
`Capability` directly from `CatalogEntity`. We have to get the `Catalog`
object, and the getting of `Catalog` object relies on loading / caching
mechanism. If we want to fix this issue, we need to refactor our current
mechanism.
--
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]