jerqi commented on code in PR #7690:
URL: https://github.com/apache/gravitino/pull/7690#discussion_r2265932075
##########
core/src/main/java/org/apache/gravitino/utils/NameIdentifierUtil.java:
##########
@@ -547,4 +547,15 @@ public static String getMetalake(NameIdentifier
identifier) {
public static NameIdentifier ofGroup(String metalake, String groupName) {
return NameIdentifier.of(NamespaceUtil.ofGroup(metalake), groupName);
}
+
+ /**
+ * Create a statistic {@link NameIdentifier} from the given identifier and
name.
+ *
+ * @param identifier The identifier to use
+ * @param name The name of the statistic
+ * @return The created statistic {@link NameIdentifier}
+ */
+ public static NameIdentifier ofStatistic(NameIdentifier identifier, String
name) {
+ return NameIdentifier.of(Namespace.fromString(identifier.toString()),
name);
Review Comment:
OK.
--
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]