Skip to content

feat(io): accept the Java S3 client properties - #4594

Open
Anurag-S1ngh wants to merge 3 commits into
apache:mainfrom
Anurag-S1ngh:feat/4140-s3-java-client-properties
Open

Anurag-S1ngh wants to merge 3 commits into
apache:mainfrom
Anurag-S1ngh:feat/4140-s3-java-client-properties

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown
Contributor

Part of #4140

Rationale for this change

Java configs use s3.path-style-access, http-client.proxy-endpoint and http-client.connection-timeout-ms, while PyIceberg reads s3.force-virtual-addressing, s3.proxy-uri and s3.connect-timeout. The FileIO constructors now fold the Java names into the native ones before the backends read them. s3.path-style-access is 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.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant