From 5a612711f7f8ca4b3542294e90ac28d43c9ac364 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Fri, 11 Aug 2023 10:46:50 +0200 Subject: [PATCH] Ecldude databrick connector 2.9.0 due to a bug The connector 2.9.0 released on Aug 10, 2023 has a bug that it does not properly declare urllib3 and it needs to be excluded. See https://github.com/databricks/databricks-sql-python/issues/190 The 2.9.1 (to be released soon) already contains the fix. --- airflow/providers/databricks/provider.yaml | 5 ++++- generated/provider_dependencies.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/airflow/providers/databricks/provider.yaml b/airflow/providers/databricks/provider.yaml index eed304c8790b2..849a3cc28b216 100644 --- a/airflow/providers/databricks/provider.yaml +++ b/airflow/providers/databricks/provider.yaml @@ -53,7 +53,10 @@ dependencies: - apache-airflow>=2.4.0 - apache-airflow-providers-common-sql>=1.5.0 - requests>=2.27,<3 - - databricks-sql-connector>=2.0.0, <3.0.0 + # The connector 2.9.0 released on Aug 10, 2023 has a bug that it does not properly declare urllib3 and + # it needs to be excluded. See https://github.com/databricks/databricks-sql-python/issues/190 + # The 2.9.1 (to be released soon) already contains the fix + - databricks-sql-connector>=2.0.0, <3.0.0, !=2.9.0 - aiohttp>=3.6.3, <4 integrations: diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index a8e1bf10cdfcd..ee7a3822672e1 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -299,7 +299,7 @@ "aiohttp>=3.6.3, <4", "apache-airflow-providers-common-sql>=1.5.0", "apache-airflow>=2.4.0", - "databricks-sql-connector>=2.0.0, <3.0.0", + "databricks-sql-connector>=2.0.0, <3.0.0, !=2.9.0", "requests>=2.27,<3" ], "cross-providers-deps": [