zhang-arvin opened a new pull request, #12528:
URL: https://github.com/apache/gravitino/pull/12528

   ### What changes were proposed in this pull request?
   
   Fixes #12480. When Gravitino authorization rejects a Flink table access, the 
Flink connector now correctly reports the authorization failure instead of 
misreporting it as "table not found".
   
   ### Why are the changes needed?
   
   Calcite performs speculative schema probes that can trigger 
ForbiddenException. The fix distinguishes between speculative probes (where the 
schema name is being tested as a table name) and real authorization failures by 
checking databaseExists().
   
   ### Changes
   - BaseCatalog.java: Added isSpeculativeSchemaProbe() logic
   - GravitinoHiveCatalog.java: Applied same fix
   - Added unit tests for both catalogs


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