Skip to content

Commit 8234954

Browse files
committed
fix S3_RESOLVE_REGION for oss://
1 parent b3a6c68 commit 8234954

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyiceberg/io/pyarrow.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@ def _initialize_oss_fs(self) -> FileSystem:
493493
client_kwargs["session_token"] = session_token
494494
if region := get(S3_REGION, AWS_REGION):
495495
client_kwargs["region"] = region
496+
_ = get(
497+
S3_RESOLVE_REGION
498+
) # this feature is only available for S3. Use `get` here so it does not get passed down to the S3FileSystem constructor
496499
if force_virtual_addressing := get(S3_FORCE_VIRTUAL_ADDRESSING, "s3.force_virtual_addressing"):
497500
client_kwargs["force_virtual_addressing"] = self._convert_str_to_bool(force_virtual_addressing)
498501
else:

0 commit comments

Comments
 (0)