roryqi commented on code in PR #10652:
URL: https://github.com/apache/gravitino/pull/10652#discussion_r3025494391


##########
iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergConfigOperations.java:
##########
@@ -98,13 +99,19 @@ public IcebergConfigOperations(IcebergCatalogWrapperManager 
catalogWrapperManage
   @Produces(MediaType.APPLICATION_JSON)
   @Timed(name = "config." + MetricNames.HTTP_PROCESS_DURATION, absolute = true)
   @ResponseMetered(name = "config", absolute = true)
-  public Response getConfig(@DefaultValue("") @QueryParam("warehouse") String 
warehouse) {
-    String catalogName = getCatalogName(warehouse);
+  public Response getConfig(
+      @PathParam("prefix") String prefix,
+      @DefaultValue("") @QueryParam("warehouse") String warehouse) {
+    String prefixCatalogName = IcebergRESTUtils.getCatalogName(prefix);
+    String catalogName =
+        StringUtils.isNotBlank(prefix) ? prefixCatalogName : 
getCatalogName(warehouse);

Review Comment:
   There is also some discussion about config operations behaviour. You can see 
https://lists.apache.org/thread/07t5rfcxn3bbbpp75fkr2h1mwdp2o4mn



-- 
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]

Reply via email to