kerwin-zk opened a new pull request, #7644:
URL: https://github.com/apache/paimon/pull/7644

   ### Purpose
   When using SparkGenericCatalog as the session catalog, `USE sys` fails with 
SCHEMA_NOT_FOUND because namespace operations (namespaceExists, 
loadNamespaceMetadata) delegate only to the session catalog (Hive Metastore), 
not to the Paimon catalog. However, Paimon's system database 'sys' is a virtual 
database handled by AbstractCatalog. getDatabase() via isSystemDatabase() 
check, which never reaches the Hive Metastore.
   
   This fix makes namespaceExists and loadNamespaceMetadata check the Paimon 
catalog first, then fall back to the session catalog, consistent with how 
loadTable already works.
   
   ### Tests
   CI


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