zhoulii commented on code in PR #11136:
URL: https://github.com/apache/paimon/pull/11136#discussion_r4560828674


##########
paimon-python/pypaimon/catalog/catalog_environment.py:
##########
@@ -111,8 +115,13 @@ def dependency_read_context(self) -> 
Optional[CatalogContext]:
 
         from pypaimon.catalog.rest.rest_catalog_loader import RESTCatalogLoader
 
+        # External REST tables intentionally have no snapshot loader, and a 
directly
+        # constructed RESTCatalog may omit `metastore=rest` from 
CatalogContext.

Review Comment:
   Fixed. The Python blob-view reader and Lance export paths now gate on 
catalog_context instead of catalog_loader. BlobViewLookup also reconstructs the 
dependency catalog for loader-less external REST tables, defaulting metastore 
to rest only when it is missing and preserving custom metastore / Read-Via. The 
native path intentionally stays unchanged and falls back because it requires 
RESTCatalogLoader.



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