Skip to content

Commit

Permalink
Update pyiceberg/io/fsspec.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Liu <[email protected]>
  • Loading branch information
Fokko and kevinjqliu authored Nov 5, 2024
1 parent d480404 commit d9b56e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyiceberg/io/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,12 @@ def _gs(properties: Properties) -> AbstractFileSystem:
# https://gcsfs.readthedocs.io/en/latest/api.html#gcsfs.core.GCSFileSystem
from gcsfs import GCSFileSystem

if (endpoint := properties.get(GCS_ENDPOINT)) and GCS_SERVICE_HOST not in properties:
if properties.get(GCS_ENDPOINT):
deprecation_message(
deprecated_in="0.8.0",
removed_in="0.9.0",
help_message=f"The property {GCS_ENDPOINT} is deprecated, please use {GCS_SERVICE_HOST} instead",
)
properties[GCS_SERVICE_HOST] = endpoint

return GCSFileSystem(
project=properties.get(GCS_PROJECT_ID),
access=properties.get(GCS_ACCESS, "full_control"),
Expand Down

0 comments on commit d9b56e7

Please sign in to comment.