singhpk234 commented on code in PR #11143: URL: https://github.com/apache/iceberg/pull/11143#discussion_r1760113483
########## core/src/main/java/org/apache/iceberg/rest/CatalogHandlers.java: ########## @@ -124,20 +133,27 @@ public static ListNamespacesResponse listNamespaces( SupportsNamespaces catalog, Namespace parent, String pageToken, String pageSize) { List<Namespace> results; List<Namespace> subResults; + String nextToken = null; + + + if (parent.isEmpty()) { + results = catalog.listNamespaces(); + } else { + results = catalog.listNamespaces(parent); + } Review Comment: duplicate, same as lines below ?? -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org