paimon
paimon copied to clipboard
[Feature] identify the "Permission.NotAllow" error returned by HMS.
Search before asking
- [x] I searched in the issues and found nothing similar.
Motivation
When calling the getTable interface of HMS, if the server-side validation finds that the user does not have permission and returns an exception, Paimon directly throws a RuntimeException with the message 'Cannot determine if table ' + identifier.getFullName() + ' is a Paimon table.' This makes it difficult to intuitively obtain the actual exception information.
Solution
When identifying the exception information that contains "Permission.NotAllow", throw TableNoPermissionException
Anything else?
No response
Are you willing to submit a PR?
- [x] I'm willing to submit a PR!