adutra commented on code in PR #4508:
URL: https://github.com/apache/polaris/pull/4508#discussion_r3276262556


##########
polaris-core/src/main/java/org/apache/polaris/core/rest/PolarisResourcePaths.java:
##########
@@ -43,27 +49,46 @@ public class PolarisResourcePaths {
   public static final String V1_APPLICABLE_POLICIES = 
"/polaris/v1/{prefix}/applicable-policies";
 
   private final String prefix;
+  private final String namespaceSeparatorEncoded;
 
-  public PolarisResourcePaths(String prefix) {
+  public PolarisResourcePaths(String prefix, String namespaceSeparatorEncoded) 
{
     this.prefix = prefix;
+    this.namespaceSeparatorEncoded = namespaceSeparatorEncoded;
   }
 
   public static PolarisResourcePaths forCatalogProperties(Map<String, String> 
properties) {
-    return new PolarisResourcePaths(properties.get(PREFIX));
+    String namespaceSeparatorEncoded =
+        properties.getOrDefault(
+            RESTCatalogProperties.NAMESPACE_SEPARATOR,
+            RESTCatalogProperties.NAMESPACE_SEPARATOR_DEFAULT);
+    if 
(!namespaceSeparatorEncoded.equals(RESTCatalogProperties.NAMESPACE_SEPARATOR_DEFAULT))
 {
+      LOGGER.warn("Using non-default namespace separator '{}'", 
namespaceSeparatorEncoded);

Review Comment:
   In my opinion, yes, because this is largely uncharted territory.



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

Reply via email to