dimas-b commented on code in PR #10877: URL: https://github.com/apache/iceberg/pull/10877#discussion_r1719970410
########## core/src/main/java/org/apache/iceberg/rest/RESTUtil.java: ########## @@ -194,15 +192,34 @@ public static String decodeString(String encoded) { * @return UTF-8 encoded string representing the namespace, suitable for use as a URL parameter */ public static String encodeNamespace(Namespace ns) { - Preconditions.checkArgument(ns != null, "Invalid namespace: null"); - String[] levels = ns.levels(); + return encodeNamespace(ns, NAMESPACE_ESCAPED_SEPARATOR); + } + + /** + * Returns a String representation of a namespace that is suitable for use in a URL / URI. Review Comment: nit: this description is too vague. It does not clarify whether URL-encoding has been applied or whether the returned string will need to go through the URL encoding process later (i.e. at HTTP request time). -- 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