Skip to content

Commit

Permalink
Temporarily disable log_telemetry_imported_packages (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Jul 19, 2023
1 parent e251a70 commit d60a9af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dask_snowflake/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,17 @@ def read_snowflake(
arrow_options,
)

# Disable `log_imported_packages_in_telemetry` as a temporary workaround for
# https://github.com/snowflakedb/snowflake-connector-python/issues/1648.
# Also xref https://github.com/coiled/dask-snowflake/issues/51.
if connection_kwargs.get("log_imported_packages_in_telemetry"):
raise ValueError(
"Using `log_imported_packages_in_telemetry=True` when creating a "
"Snowflake connection is not currently supported."
)
else:
connection_kwargs["log_imported_packages_in_telemetry"] = False

# Some clusters will overwrite the `snowflake.partner` configuration value.
# We fetch snowflake batches on the cluster to ensure we capture the
# right partner application ID.
Expand Down

0 comments on commit d60a9af

Please sign in to comment.