paimon icon indicating copy to clipboard operation
paimon copied to clipboard

[Feature] identify the "Permission.NotAllow" error returned by HMS.

Open gavin9402 opened this issue 8 months ago • 0 comments

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!

gavin9402 avatar Apr 17 '25 07:04 gavin9402