Abyss-lord commented on code in PR #5942:
URL: https://github.com/apache/gravitino/pull/5942#discussion_r1895141145


##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListCatalogs.java:
##########
@@ -49,7 +49,11 @@ public void handle() {
     try {
       GravitinoClient client = buildClient(metalake);
       catalogs = client.listCatalogsInfo();
-      output(catalogs);
+      if (catalogs.length == 0) {
+        System.out.println("No catalogs exists.");
+      } else {
+        output(catalogs);
+      }

Review Comment:
   
![image](https://github.com/user-attachments/assets/aad92828-e336-4530-9577-e3c67679492e)
   
   That logic is being written by another member whose code is not complete. 
Strings cannot be displayed using this method.



-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to