@@ -638,8 +638,13 @@ def _resolve_storage_credentials(storage_credentials: list[StorageCredential], l
638638
639639 return best_match .config if best_match else {}
640640
641- def _load_file_io (self , properties : Properties = EMPTY_DICT , location : str | None = None ) -> FileIO :
642- merged_properties = {** self .properties , ** properties }
641+ def _load_file_io (
642+ self ,
643+ properties : Properties = EMPTY_DICT ,
644+ location : str | None = None ,
645+ table_properties : Properties = EMPTY_DICT ,
646+ ) -> FileIO :
647+ merged_properties = {** table_properties , ** self .properties , ** properties }
643648 if self ._auth_manager :
644649 merged_properties [AUTH_MANAGER ] = self ._auth_manager
645650 return load_file_io (merged_properties , location )
@@ -1152,8 +1157,9 @@ def _response_to_table(self, identifier_tuple: tuple[str, ...], table_response:
11521157 metadata_location = table_response .metadata_location , # type: ignore
11531158 metadata = table_response .metadata ,
11541159 io = self ._load_file_io (
1155- {** table_response .metadata . properties , ** table_response . config , ** credential_config },
1160+ {** table_response .config , ** credential_config },
11561161 table_response .metadata_location ,
1162+ table_properties = table_response .metadata .properties ,
11571163 ),
11581164 catalog = self ,
11591165 config = table_response .config ,
@@ -1169,8 +1175,9 @@ def _response_to_staged_table(self, identifier_tuple: tuple[str, ...], table_res
11691175 metadata_location = table_response .metadata_location , # type: ignore
11701176 metadata = table_response .metadata ,
11711177 io = self ._load_file_io (
1172- {** table_response .metadata . properties , ** table_response . config , ** credential_config },
1178+ {** table_response .config , ** credential_config },
11731179 table_response .metadata_location ,
1180+ table_properties = table_response .metadata .properties ,
11741181 ),
11751182 catalog = self ,
11761183 )
0 commit comments