krishan1390 commented on code in PR #17679:
URL: https://github.com/apache/pinot/pull/17679#discussion_r2796841390


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/ControllerRequestClient.java:
##########
@@ -209,6 +209,30 @@ public void deleteLogicalTable(String logicalTableName)
     }
   }
 
+  public String getLogicalTable(String logicalTableName)
+      throws IOException {
+    try {
+      SimpleHttpResponse response = HttpClient.wrapAndThrowHttpException(
+          _httpClient.sendGetRequest(
+              new 
URI(_controllerRequestURLBuilder.forLogicalTableGet(logicalTableName)), 
_headers));
+      return response.getResponse();
+    } catch (HttpErrorStatusException | URISyntaxException e) {
+      throw new IOException(e);
+    }
+  }
+
+  public List<String> getLogicalTableNames()
+      throws IOException {
+    try {
+      SimpleHttpResponse response = HttpClient.wrapAndThrowHttpException(
+          _httpClient.sendGetRequest(
+              new URI(_controllerRequestURLBuilder.forLogicalTableNamesGet()), 
_headers));
+      return JsonUtils.stringToObject(response.getResponse(), List.class);
+    } catch (HttpErrorStatusException | URISyntaxException e) {
+      throw new IOException(e);
+    }
+  }

Review Comment:
   Not a Problem 



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

Reply via email to