JingsongLi opened a new pull request, #1375: URL: https://github.com/apache/paimon-rust/pull/1375
### Purpose When a DLF token file is supplied only through `DLF_TOKEN_PATH`, Rust currently fails to create the authentication provider. Discover that file as a fallback, matching the PyPaimon behavior added in apache/paimon#11088. ### Brief change log - Preserve the precedence of explicit token loaders, explicit token paths, and any inline AK/STS field over the environment variable, including partial or empty inline credentials. - Ignore unset or empty environment values and reuse the existing local-file loader and expiration-based refresh. - Add process-isolated tests for discovery, precedence, configuration errors, refresh, and REST initialization across config merging. Verify that each child actually executes its selected test. Java's explicit loader/path/AK priority and refresh behavior were checked. Java itself does not currently discover this environment variable; the new fallback follows the Python PR. ### Tests - `cargo test --locked -p paimon --lib api::auth:: -- --nocapture` — 33 passed. - `cargo test --locked -p paimon --lib --test rest_api_test --test rest_catalog_test -- --test-threads=4` — 5,048 passed, 6 existing ignored tests. - `cargo fmt --all -- --check` and `git diff --check` — passed. - `cargo clippy --locked -p paimon --all-targets -- -D warnings -A clippy::nonminimal_bool` — passed. Strict Clippy is blocked by six existing `nonminimal_bool` diagnostics in unchanged files. The default-concurrency full run hit readiness failures in two existing shared-cache subprocess tests. Both passed individually and in the complete four-thread rerun. ### API and Format Adds an optional environment fallback for DLF REST authentication. No public API or storage-format changes. ### Documentation Updated the getting-started guide with environment discovery, precedence, and unset/empty value behavior. -- 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]
