kbendick opened a new pull request #4244: URL: https://github.com/apache/iceberg/pull/4244
The REST Catalog uses the string value of a namespace in URLs. Per the spec, the levels of a multi-level namespace are joined by the NULL byte character (`'\0'` or more correctly `'\u0000'`). This adds a utility class which can: 1) Properly URL encode a `Namespace` for use as either a path or query parameter 2) Function for decoding the namespace string from a path variable into a Namespace 3) Some helpers for use with REST catalog configuration (function to get all config values that start with a specific prefix, and function to strip the trailing slash from a path if need be). The items from (3) can likely be put into a shared `CatalogUtil` class, but for now to cause minimal disruption for people who cherry-pick commits into their fork, I'm leaving them as separate. This PR is to help unblock concurrent work on the REST catalog. -- 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]
