Anurag-S1ngh commented on code in PR #4594:
URL: https://github.com/apache/iceberg-python/pull/4594#discussion_r4811104610


##########
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:
   Fixed: the timeouts now come from the scoped keys, 
`http-client.apache.connection-timeout-ms` and 
`http-client.apache.socket-timeout-ms`, with `http-client.urlconnection.*` as 
the fallback. The Apache keys win when both are set, matching the Apache client 
being the Java default. The tests cover both scoped sets and the precedence, 
and the unscoped keys are no longer defined.



##########
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:
   Fixed: `PyArrowFileIO` now logs a warning when `s3.sse.type` is set, and the 
configuration docs mark `s3.sse.*` as `FsspecFileIO` only. `s3.sse.type` and 
`s3.sse.key` are still mapped for `FsspecFileIO`.



-- 
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]

Reply via email to