zymap commented on PR #10630: URL: https://github.com/apache/iceberg/pull/10630#issuecomment-2216082740
> Considering the potential access control tie up around namespaces, I wouldn't recommend auto creating missing namespaces. The current user may not have permission to drop parent namespaces and it may need manual clean up again from admin. > > It is not very hard to write a script to create namespaces from admin level instead of code level. So, I am not really sure about this change. > > Also, is there any catalog doing this already? Can you please point me to it? @ajantha-bhat Our case is in the message queue and makes the data sink to the iceberg. We have a lot of namespace so it is not easy to do this with a script. Yes, it would have permission issue but I think that should be properly configured by the user. If you want it auto-created, you can give a proper role to do this. That should be a part of the RBAC. As @snazy said, the functionality is not very clear in the iceberg. The namespace levels is different for the different catalogs. I did some tests, for JDBC, and it will create all the levels. But for others, they may treat it as a single string. For deletions, my understanding is it should never done automatically. You never know what is used for and who uses it. It must be a manual operation because you should be responsible for checking nobody still using it. -- 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]
