mchades commented on code in PR #7361:
URL: https://github.com/apache/gravitino/pull/7361#discussion_r2135800244
##########
core/src/main/java/org/apache/gravitino/storage/relational/utils/POConverters.java:
##########
@@ -1305,6 +1385,74 @@ public static TagMetadataObjectRelPO
initializeTagMetadataObjectRelPOWithVersion
}
}
+ public static PolicyEntity fromPolicyPO(PolicyPO policyPO, Namespace
namespace) {
+ try {
+ return PolicyEntity.builder()
+ .withId(policyPO.getPolicyId())
+ .withName(policyPO.getPolicyName())
+ .withNamespace(namespace)
+ .withType(policyPO.getPolicyType())
+ .withComment(policyPO.getPolicyVersionPO().getPolicyComment())
Review Comment:
unnecessary, because `PolicyPO.Builder` already did the validation
--
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]