Repository navigation
feat(io): accept the Java S3 client properties - #4594
Open
Anurag-S1ngh wants to merge 3 commits into
Open
Anurag-S1ngh wants to merge 3 commits into
Anurag-S1ngh wants to merge 3 commits into
Conversation
Java configs use s3.path-style-access, http-client.proxy-endpoint and http-client.connection-timeout-ms. Fold them into the property names the PyArrow and fsspec backends read, keeping the native keys when both are set.
http-client.socket-timeout-ms is the Java name for the read timeout. Map it to s3.request-timeout in seconds when the native key is absent.
Java configs set s3.sse.type and s3.sse.key. Map s3, kms and dsse-kms to the server-side encryption values s3fs expects, and use sse.key as the KMS key for the KMS types. Unsupported types raise instead of silently leaving the object unencrypted.
This branch has not been deployed
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.
Part of #4140
Rationale for this change
Java configs use
s3.path-style-access,http-client.proxy-endpointandhttp-client.connection-timeout-ms, while PyIceberg readss3.force-virtual-addressing,s3.proxy-uriands3.connect-timeout. The FileIO constructors now fold the Java names into the native ones before the backends read them.s3.path-style-accessis inverted, and the timeout is converted from milliseconds to seconds. Native keys keep precedence when both are set.Are these changes tested?
Added tests for both the PyArrow and fsspec backends: the Java keys reach the client with the right values, and the native keys win when both are set. All S3 property tests pass.
Are there any user-facing changes?
Yes. The Java S3 client properties are accepted.