MgjLLL commented on code in PR #8136:
URL: https://github.com/apache/paimon/pull/8136#discussion_r3458049666
##########
paimon-python/pypaimon/catalog/catalog_environment.py:
##########
@@ -117,3 +117,12 @@ def empty() -> 'CatalogEnvironment':
catalog_loader=None,
supports_version_management=False
)
+
+ def table_query_auth(self, options, identifier):
+ if not options.query_auth_enabled or self.catalog_loader is None:
+ return None
+
+ def auth(select):
Review Comment:
Fixed. Replaced the nested closure with a top-level `_TableQueryAuthFn`
class that is pickleable. Verified with pickle roundtrip test.
--
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]