Skip to content

Commit

Permalink
Limit pandas to <2.2 (apache#37748)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis authored and utkarsharma2 committed Apr 22, 2024
1 parent bd12e09 commit 779e767
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 24 deletions.
6 changes: 5 additions & 1 deletion airflow/providers/amazon/provider.yaml
Expand Up @@ -100,7 +100,11 @@ dependencies:
additional-extras:
- name: pandas
dependencies:
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2
# There is conflict between boto3 and aiobotocore dependency botocore.
# TODO: We can remove it once boto3 and aiobotocore both have compatible botocore version or
# boto3 have native async support and we move away from aio aiobotocore
Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/apache/hive/provider.yaml
Expand Up @@ -69,7 +69,11 @@ dependencies:
- apache-airflow>=2.6.0
- apache-airflow-providers-common-sql>=1.3.1
- hmsclient>=0.1.0
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2
- pyhive[hive_pure_sasl]>=0.7.0
- thrift>=0.9.2

Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/common/sql/provider.yaml
Expand Up @@ -58,7 +58,11 @@ dependencies:
additional-extras:
- name: pandas
dependencies:
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2

integrations:
- integration-name: Common SQL
Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/exasol/provider.yaml
Expand Up @@ -57,7 +57,11 @@ dependencies:
- apache-airflow>=2.6.0
- apache-airflow-providers-common-sql>=1.10.0
- pyexasol>=0.5.1
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2

integrations:
- integration-name: Exasol
Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/google/provider.yaml
Expand Up @@ -147,7 +147,11 @@ dependencies:
- json-merge-patch>=0.2
- looker-sdk>=22.2.0
- pandas-gbq
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2
# A transient dependency of google-cloud-bigquery-datatransfer, but we
# further constrain it since older versions are buggy.
- proto-plus>=1.19.6
Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/presto/provider.yaml
Expand Up @@ -59,7 +59,11 @@ dependencies:
- apache-airflow>=2.6.0
- apache-airflow-providers-common-sql>=1.3.1
- presto-python-client>=0.8.4
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2

integrations:
- integration-name: Presto
Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/salesforce/provider.yaml
Expand Up @@ -55,7 +55,11 @@ versions:
dependencies:
- apache-airflow>=2.6.0
- simple-salesforce>=1.0.0
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2

integrations:
- integration-name: Salesforce
Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/trino/provider.yaml
Expand Up @@ -60,7 +60,11 @@ versions:
dependencies:
- apache-airflow>=2.6.0
- apache-airflow-providers-common-sql>=1.3.1
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2
- trino>=0.318.0

integrations:
Expand Down
6 changes: 5 additions & 1 deletion airflow/providers/weaviate/provider.yaml
Expand Up @@ -45,7 +45,11 @@ integrations:
dependencies:
- apache-airflow>=2.6.0
- weaviate-client>=3.24.2
- pandas>=1.2.5
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
- pandas>=1.2.5,<2.2

hooks:
- integration-name: Weaviate
Expand Down
14 changes: 7 additions & 7 deletions generated/provider_dependencies.json
Expand Up @@ -148,7 +148,7 @@
"apache-airflow-providers-common-sql>=1.3.1",
"apache-airflow>=2.6.0",
"hmsclient>=0.1.0",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"pyhive[hive_pure_sasl]>=0.7.0",
"thrift>=0.9.2"
],
Expand Down Expand Up @@ -455,7 +455,7 @@
"deps": [
"apache-airflow-providers-common-sql>=1.10.0",
"apache-airflow>=2.6.0",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"pyexasol>=0.5.1"
],
"devel-deps": [],
Expand Down Expand Up @@ -566,7 +566,7 @@
"json-merge-patch>=0.2",
"looker-sdk>=22.2.0",
"pandas-gbq",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"proto-plus>=1.19.6",
"sqlalchemy-bigquery>=1.2.1",
"sqlalchemy-spanner>=1.6.2"
Expand Down Expand Up @@ -932,7 +932,7 @@
"deps": [
"apache-airflow-providers-common-sql>=1.3.1",
"apache-airflow>=2.6.0",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"presto-python-client>=0.8.4"
],
"devel-deps": [],
Expand Down Expand Up @@ -966,7 +966,7 @@
"salesforce": {
"deps": [
"apache-airflow>=2.6.0",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"simple-salesforce>=1.0.0"
],
"devel-deps": [],
Expand Down Expand Up @@ -1140,7 +1140,7 @@
"deps": [
"apache-airflow-providers-common-sql>=1.3.1",
"apache-airflow>=2.6.0",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"trino>=0.318.0"
],
"devel-deps": [],
Expand Down Expand Up @@ -1168,7 +1168,7 @@
"weaviate": {
"deps": [
"apache-airflow>=2.6.0",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"weaviate-client>=3.24.2"
],
"devel-deps": [],
Expand Down
20 changes: 12 additions & 8 deletions pyproject.toml
Expand Up @@ -214,7 +214,11 @@ otel = [
"opentelemetry-exporter-prometheus",
]
pandas = [
"pandas>=1.2.5",
# In pandas 2.2 minimal version of the sqlalchemy is 2.0
# https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#increased-minimum-versions-for-dependencies
# However Airflow not fully supports it yet: https://github.com/apache/airflow/issues/28723
# In addition FAB also limit sqlalchemy to < 2.0
"pandas>=1.2.5,<2.2",
]
password = [
"bcrypt>=2.0.0",
Expand Down Expand Up @@ -593,7 +597,7 @@ apache-hdfs = [ # source: airflow/providers/apache/hdfs/provider.yaml
apache-hive = [ # source: airflow/providers/apache/hive/provider.yaml
"apache-airflow[common_sql]",
"hmsclient>=0.1.0",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"pyhive[hive_pure_sasl]>=0.7.0",
"thrift>=0.9.2",
]
Expand Down Expand Up @@ -690,7 +694,7 @@ elasticsearch = [ # source: airflow/providers/elasticsearch/provider.yaml
]
exasol = [ # source: airflow/providers/exasol/provider.yaml
"apache-airflow[common_sql]",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"pyexasol>=0.5.1",
]
fab = [ # source: airflow/providers/fab/provider.yaml
Expand Down Expand Up @@ -761,7 +765,7 @@ google = [ # source: airflow/providers/google/provider.yaml
"json-merge-patch>=0.2",
"looker-sdk>=22.2.0",
"pandas-gbq",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"proto-plus>=1.19.6",
"sqlalchemy-bigquery>=1.2.1",
"sqlalchemy-spanner>=1.6.2",
Expand Down Expand Up @@ -886,7 +890,7 @@ postgres = [ # source: airflow/providers/postgres/provider.yaml
]
presto = [ # source: airflow/providers/presto/provider.yaml
"apache-airflow[common_sql]",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"presto-python-client>=0.8.4",
]
qdrant = [ # source: airflow/providers/qdrant/provider.yaml
Expand All @@ -896,7 +900,7 @@ redis = [ # source: airflow/providers/redis/provider.yaml
"redis>=4.5.2,<5.0.0,!=4.5.5",
]
salesforce = [ # source: airflow/providers/salesforce/provider.yaml
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"simple-salesforce>=1.0.0",
]
samba = [ # source: airflow/providers/samba/provider.yaml
Expand Down Expand Up @@ -950,15 +954,15 @@ teradata = [ # source: airflow/providers/teradata/provider.yaml
]
trino = [ # source: airflow/providers/trino/provider.yaml
"apache-airflow[common_sql]",
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"trino>=0.318.0",
]
vertica = [ # source: airflow/providers/vertica/provider.yaml
"apache-airflow[common_sql]",
"vertica-python>=0.5.1",
]
weaviate = [ # source: airflow/providers/weaviate/provider.yaml
"pandas>=1.2.5",
"pandas>=1.2.5,<2.2",
"weaviate-client>=3.24.2",
]
yandex = [ # source: airflow/providers/yandex/provider.yaml
Expand Down

0 comments on commit 779e767

Please sign in to comment.