ajantha-bhat commented on code in PR #14870:
URL: https://github.com/apache/iceberg/pull/14870#discussion_r2701156682
##########
core/src/main/java/org/apache/iceberg/rest/CatalogHandlers.java:
##########
@@ -593,6 +594,18 @@ public static void dropView(ViewCatalog catalog,
TableIdentifier viewIdentifier)
}
}
+ public static LoadViewResponse registerView(
+ ViewCatalog catalog, Namespace namespace, RegisterViewRequest request) {
+ request.validate();
+
+ TableIdentifier identifier = TableIdentifier.of(namespace, request.name());
+ View view = catalog.registerView(identifier, request.metadataLocation());
+ return ImmutableLoadViewResponse.builder()
+ .metadata(asBaseView(view).operations().current())
Review Comment:
Concluded the same while working on java view catalog.
https://github.com/apache/iceberg/pull/14868#discussion_r2670900611
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]