flyrain commented on issue #543:
URL: https://github.com/apache/polaris/issues/543#issuecomment-2542499603

   It failed at when Polaris is trying to check the parent namespace's 
privilege, 
https://github.com/polaris-catalog/polaris/blob/main/service/common/src/main/java/org/apache/polaris/service/catalog/PolarisCatalogHandlerWrapper.java#L248-L248.
 
   
   Basically, the behavior you want here is to create the parent namespace if 
it doesn't exist, then create the sub namespace. If Polaris allows this 
behavior, it actually breaks the assumption that one REST API call only creates 
one namespace. Checking this spec for details, 
https://github.com/polaris-catalog/polaris/blob/main/spec/rest-catalog-open-api.yaml#L4080-L4080.
 I think it's more suitable as a client side change, like this pseudo code 
shows:
   ```
   # create namespace n1.n2
   if( n1 not exists) {
      create n1
      create n2
   } else {
      create n2
   }
   ```


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