jerqi commented on code in PR #9502:
URL: https://github.com/apache/gravitino/pull/9502#discussion_r2638515205
##########
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:
I think we should add this method in the
```
public interface CatalogProvider {
}
```
Entity is the common concept. So if we add the interface here, we can't get
rid of the conditions.
--
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]