Anurag-S1ngh commented on code in PR #4596:
URL: https://github.com/apache/iceberg-python/pull/4596#discussion_r4792479542
##########
pyiceberg/io/fsspec.py:
##########
@@ -302,6 +304,10 @@ def _adls(properties: Properties, hostname: str | None =
None) -> AbstractFileSy
if hostname and account_name is None:
account_name = hostname.split(".")[0]
+ connection_string = properties.get(ADLS_CONNECTION_STRING)
+ if connection_string is None and account_name is not None:
+ connection_string =
properties.get(f"{ADLS_CONNECTION_STRING}.{account_name}")
Review Comment:
Split this out. This PR now only adds the shared-key properties, and the
per-host connection strings are in #4609.
##########
pyiceberg/io/pyarrow.py:
##########
@@ -601,14 +603,14 @@ def _initialize_azure_fs(self, netloc: str | None = None)
-> FileSystem:
client_kwargs: dict[str, str] = {}
- account_name = self.properties.get(ADLS_ACCOUNT_NAME)
+ account_name = get_first_property_value(self.properties,
ADLS_ACCOUNT_NAME, ADLS_SHARED_KEY_ACCOUNT_NAME)
Review Comment:
Leaving the both-or-none check out of this PR to keep it scoped. I can add
it in a follow-up.
--
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]