From b35cb58c2b55c03f53d0e8414274df24e0bdeee8 Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Tue, 18 Jul 2023 12:41:39 -0500 Subject: [PATCH 1/4] Temporarily disable log_telemetry_imported_packages --- dask_snowflake/core.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dask_snowflake/core.py b/dask_snowflake/core.py index 9e8ee3e..c666fda 100644 --- a/dask_snowflake/core.py +++ b/dask_snowflake/core.py @@ -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. From 30cf1451841f9db3f08ed1aa08a3113e4ad4e21d Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Tue, 18 Jul 2023 13:26:35 -0500 Subject: [PATCH 2/4] Rerun CI From 57859c6777c6cbc7eb181adb5cadb135aafb902e Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Tue, 18 Jul 2023 13:47:44 -0500 Subject: [PATCH 3/4] Rerun CI From 2846919fdcf97e14634aed788d8b481036a60797 Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Tue, 18 Jul 2023 14:24:40 -0500 Subject: [PATCH 4/4] Rerun CI