Skip to content

Commit c0c7614

Browse files
authored
Limit ydb to < 3.19.0 (apache#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: * apache/beam#34081 or * https://github.com/ydb-platform/ydb/issues/15087
1 parent 6bfafda commit c0c7614

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

generated/provider_dependencies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@
13921392
"apache-airflow-providers-common-sql>=1.20.0",
13931393
"apache-airflow>=2.9.0",
13941394
"ydb-dbapi>=0.1.0",
1395-
"ydb>=3.18.8"
1395+
"ydb>=3.18.8, !=3.19.0"
13961396
],
13971397
"devel-deps": [],
13981398
"plugins": [],

providers/ydb/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ The package supports the following python versions: 3.9,3.10,3.11,3.12
5050
Requirements
5151
------------
5252

53-
======================================= ==================
53+
======================================= =====================
5454
PIP package Version required
55-
======================================= ==================
55+
======================================= =====================
5656
``apache-airflow`` ``>=2.9.0``
5757
``apache-airflow-providers-common-sql`` ``>=1.20.0``
58-
``ydb`` ``>=3.18.8``
58+
``ydb`` ``>=3.18.8,!=3.19.0``
5959
``ydb-dbapi`` ``>=0.1.0``
60-
======================================= ==================
60+
======================================= =====================
6161

6262
Cross provider package dependencies
6363
-----------------------------------

providers/ydb/pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ requires-python = "~=3.9"
5757
dependencies = [
5858
"apache-airflow>=2.9.0",
5959
"apache-airflow-providers-common-sql>=1.20.0",
60-
"ydb>=3.18.8",
60+
# Ydb 3.19.0 depends on grpcio >= 1.68.1 but latest apache-beam depends on grpcio < 1.66.0
61+
# also while Ydb requires, it, it does not state it in their requirements, so we cannot add
62+
# grpcio < 1.66 because it will not limit Ydb in any way
63+
# Since using latest apache.beam is more important than latest ydb, we are limiting it until
64+
# the issue https://github.com/apache/beam/issues/34081 or
65+
# https://github.com/ydb-platform/ydb/issues/15087 are fixed
66+
"ydb>=3.18.8, !=3.19.0",
6167
"ydb-dbapi>=0.1.0",
6268
]
6369

providers/ydb/src/airflow/providers/ydb/get_provider_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_provider_info():
4646
"dependencies": [
4747
"apache-airflow>=2.9.0",
4848
"apache-airflow-providers-common-sql>=1.20.0",
49-
"ydb>=3.18.8",
49+
"ydb>=3.18.8, !=3.19.0",
5050
"ydb-dbapi>=0.1.0",
5151
],
5252
}

0 commit comments

Comments
 (0)