[python] Propagate dependency read context in REST headers - #8908
Open
leaves12138 wants to merge 2 commits into
Open
[python] Propagate dependency read context in REST headers#8908leaves12138 wants to merge 2 commits into
leaves12138 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Port the dependency read context propagation introduced by #8823 and the custom catalog preservation follow-up from #8912 to PyPaimon.
Changes
X-Paimon-Read-ViaREST header constant.CatalogFactorywith the fullCatalogContextinstead of forcing the built-in REST loader.header.*propagation so dependency table and data-token requests carry the context.The header is request context only and must not be treated as authorization proof.
Validation
PYTHONPATH=. python3 -m unittest pypaimon.tests.catalog_environment_test pypaimon.tests.rest.api_test pypaimon.tests.rest.rest_token_file_io_test -v(28 tests passed)python3 -m compileall -q pypaimon/catalog/catalog_factory.py pypaimon/catalog/catalog_environment.py pypaimon/utils/blob_view_lookup.py pypaimon/tests/catalog_environment_test.pyflake8 --config=paimon-python/dev/cfg.ini paimon-python/pypaimon/catalog/catalog_factory.py paimon-python/pypaimon/catalog/catalog_environment.py paimon-python/pypaimon/utils/blob_view_lookup.py paimon-python/pypaimon/tests/catalog_environment_test.pygit diff --check