This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new c0c76146e85 Limit ydb to < 3.19.0 (#47105)
c0c76146e85 is described below

commit c0c76146e85ffa7d698a2d91d79993c2022cdcdc
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Feb 26 16:42:36 2025 +0100

    Limit ydb to < 3.19.0 (#47105)
    
    Ydb 3.19.0 wrongly states it compatibility with grpc.io and it
    caused our tests to fail as it conflicts with apache.beam < 1.66.
    
    Temporarily limiting it now, deferring final solution(s) to:
    
    * https://github.com/apache/beam/issues/34081
    
    or
    
    * https://github.com/ydb-platform/ydb/issues/15087
---
 generated/provider_dependencies.json                         | 2 +-
 providers/ydb/README.rst                                     | 8 ++++----
 providers/ydb/pyproject.toml                                 | 8 +++++++-
 providers/ydb/src/airflow/providers/ydb/get_provider_info.py | 2 +-
 4 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/generated/provider_dependencies.json 
b/generated/provider_dependencies.json
index 72e3a55e755..98cbfdde671 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -1392,7 +1392,7 @@
       "apache-airflow-providers-common-sql>=1.20.0",
       "apache-airflow>=2.9.0",
       "ydb-dbapi>=0.1.0",
-      "ydb>=3.18.8"
+      "ydb>=3.18.8, !=3.19.0"
     ],
     "devel-deps": [],
     "plugins": [],
diff --git a/providers/ydb/README.rst b/providers/ydb/README.rst
index acebde802cb..21da6ebdd55 100644
--- a/providers/ydb/README.rst
+++ b/providers/ydb/README.rst
@@ -50,14 +50,14 @@ The package supports the following python versions: 
3.9,3.10,3.11,3.12
 Requirements
 ------------
 
-=======================================  ==================
+=======================================  =====================
 PIP package                              Version required
-=======================================  ==================
+=======================================  =====================
 ``apache-airflow``                       ``>=2.9.0``
 ``apache-airflow-providers-common-sql``  ``>=1.20.0``
-``ydb``                                  ``>=3.18.8``
+``ydb``                                  ``>=3.18.8,!=3.19.0``
 ``ydb-dbapi``                            ``>=0.1.0``
-=======================================  ==================
+=======================================  =====================
 
 Cross provider package dependencies
 -----------------------------------
diff --git a/providers/ydb/pyproject.toml b/providers/ydb/pyproject.toml
index 598362d68a2..6a6b9de5366 100644
--- a/providers/ydb/pyproject.toml
+++ b/providers/ydb/pyproject.toml
@@ -57,7 +57,13 @@ requires-python = "~=3.9"
 dependencies = [
     "apache-airflow>=2.9.0",
     "apache-airflow-providers-common-sql>=1.20.0",
-    "ydb>=3.18.8",
+    # Ydb 3.19.0 depends on grpcio >= 1.68.1 but latest apache-beam depends on 
grpcio < 1.66.0
+    # also while Ydb requires, it, it does not state it in their requirements, 
so we cannot add
+    # grpcio < 1.66 because it will not limit Ydb in any way
+    # Since using latest apache.beam is more important than latest ydb, we are 
limiting it until
+    # the issue https://github.com/apache/beam/issues/34081 or
+    # https://github.com/ydb-platform/ydb/issues/15087  are fixed
+    "ydb>=3.18.8, !=3.19.0",
     "ydb-dbapi>=0.1.0",
 ]
 
diff --git a/providers/ydb/src/airflow/providers/ydb/get_provider_info.py 
b/providers/ydb/src/airflow/providers/ydb/get_provider_info.py
index 7b43749a414..b1f5e9bc0c3 100644
--- a/providers/ydb/src/airflow/providers/ydb/get_provider_info.py
+++ b/providers/ydb/src/airflow/providers/ydb/get_provider_info.py
@@ -46,7 +46,7 @@ def get_provider_info():
         "dependencies": [
             "apache-airflow>=2.9.0",
             "apache-airflow-providers-common-sql>=1.20.0",
-            "ydb>=3.18.8",
+            "ydb>=3.18.8, !=3.19.0",
             "ydb-dbapi>=0.1.0",
         ],
     }

Reply via email to