Fokko commented on code in PR #4594:
URL: https://github.com/apache/iceberg-python/pull/4594#discussion_r4784153929
##########
pyiceberg/io/__init__.py:
##########
@@ -89,6 +89,18 @@ def _is_local_path(path: str) -> bool:
S3_ALLOW_DELAYED_OPEN = "s3.allow-delayed-open"
S3_SERVER_SIDE_ENCRYPTION = "s3.server-side-encryption"
S3_SSE_KMS_KEY_ID = "s3.sse-kms-key-id"
+S3_SSE_TYPE = "s3.sse.type"
+S3_SSE_KEY = "s3.sse.key"
+S3_PATH_STYLE_ACCESS = "s3.path-style-access"
+S3_PROXY_ENDPOINT = "http-client.proxy-endpoint"
+S3_CONNECT_TIMEOUT_MS = "http-client.connection-timeout-ms"
Review Comment:
Java doesn't define an unscoped `http-client.connection-timeout-ms` /
`http-client.socket-timeout-ms`. The keys are scoped per HTTP client:
`http-client.apache.connection-timeout-ms` /
`http-client.apache.socket-timeout-ms` (Apache is the default) and
`http-client.urlconnection.*` (`HttpClientProperties.java`). As written, a Java
config is silently ignored. Could we accept the scoped keys instead?
##########
pyiceberg/io/pyarrow.py:
##########
@@ -413,7 +414,7 @@ class PyArrowFileIO(_TransientStateMixin, FileIO):
def __init__(self, properties: Properties = EMPTY_DICT):
self._init_transient()
- super().__init__(properties=properties)
+ super().__init__(properties=_resolve_s3_properties(properties))
Review Comment:
`PyArrowFileIO` doesn't read `s3.server-side-encryption` /
`s3.sse-kms-key-id`. So with the default FileIO, `s3.sse.type=kms` is resolved
here but has no effect, and objects are written without SSE. Could we at least
warn when `s3.sse.type` is set on PyArrow, and document it as
`FsspecFileIO`-only?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]