Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
- Fixed a bug where timezoned timestamps fetched as pandas.DataFrame or pyarrow.Table would overflow for the sake of unnecessary precision. In the case where an overflow cannot be prevented a clear error will be raised now.
- Fix OAuth authenticator values.
- Add `unsafe_skip_file_permissions_check` flag to skip file permissions check on cache and config.
- Introduce snowflake_version property to the connection
- Introduce snowflake_version property to the connection.
- Added basic json support for Interval types.
- Moved `OAUTH_TYPE` to `CLIENT_ENVIROMENT`.
- Fix bug where PAT with external session authenticator was used while `external_session_id` was not provided in `SnowflakeRestful.fetch`
- Added support for parameter `use_vectorized_scanner` in function `write_pandas`.
- Fixed GCS staging by ensuring the endpoint has a scheme.
- Fix unclear error messages in case of incorrect `authenticator` values.
- Fix case-sensitivity of `Oauth` and `programmatic_access_token` authenticator values.
- Relaxed `pyarrow` version constraint, versions >= 19 can now be used.
Expand Down
2 changes: 2 additions & 0 deletions src/snowflake/connector/gcs_storage_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ def get_location(
if endpoint:
if endpoint.endswith("/"):
endpoint = endpoint[:-1]
if not endpoint.startswith("https://"):
endpoint = "https://" + endpoint
return GcsLocation(bucket_name=container_name, path=path, endpoint=endpoint)
elif use_virtual_url:
return GcsLocation(
Expand Down
8 changes: 8 additions & 0 deletions test/unit/test_gcs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,14 @@ def test_get_file_header_none_with_presigned_url(tmp_path):
True,
"https://overriddenurl.com/filename",
),
(
"US-CENTRAL1",
"https://overriddenurl.com",
False,
"overriddenurl.com",
True,
"https://overriddenurl.com/filename",
),
],
)
def test_url(
Expand Down
Loading