You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "kerwin-zk (via GitHub)" <gi...@apache.org> on 2026/04/14 07:11:15 UTC

[PR] [spark] Fix SparkGenericCatalog not recognizing Paimon system database sys [paimon]

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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [spark] Fix SparkGenericCatalog not recognizing Paimon system database sys [paimon]

Posted by "kerwin-zk (via GitHub)" <gi...@apache.org>.
kerwin-zk closed pull request #7644: [spark] Fix SparkGenericCatalog not recognizing Paimon system database sys
URL: https://github.com/apache/paimon/pull/7644


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org