Skip to content

Commit

Permalink
Fix provider dependencies (#34828)
Browse files Browse the repository at this point in the history
  • Loading branch information
Illumaria committed Sep 7, 2024
1 parent ff8178e commit 10f7559
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion airflow/providers/common/sql/hooks/sql.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class ConnectorProtocol(Protocol):
class DbApiHook(BaseHook):
conn_name_attr: str
default_conn_name: str
strip_semicolon: bool
supports_autocommit: bool
supports_executemany: bool
connector: ConnectorProtocol | None
Expand Down Expand Up @@ -96,7 +97,7 @@ class DbApiHook(BaseHook):
@staticmethod
def strip_sql_string(sql: str) -> str: ...
@staticmethod
def split_sql_string(sql: str) -> list[str]: ...
def split_sql_string(sql: str, strip_semicolon: bool = False) -> list[str]: ...
@property
def last_description(self) -> Sequence[Sequence] | None: ...
@overload
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/presto/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ versions:

dependencies:
- apache-airflow>=2.8.0
- apache-airflow-providers-common-sql>=1.16.1
- apache-airflow-providers-common-sql>=1.17.0
- presto-python-client>=0.8.4
# 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
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/trino/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ versions:

dependencies:
- apache-airflow>=2.8.0
- apache-airflow-providers-common-sql>=1.16.1
- apache-airflow-providers-common-sql>=1.17.0
# 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
Expand Down
4 changes: 2 additions & 2 deletions generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@
},
"presto": {
"deps": [
"apache-airflow-providers-common-sql>=1.16.1",
"apache-airflow-providers-common-sql>=1.17.0",
"apache-airflow>=2.8.0",
"pandas>=1.5.3,<2.2;python_version<\"3.9\"",
"pandas>=2.1.2,<2.2;python_version>=\"3.9\"",
Expand Down Expand Up @@ -1290,7 +1290,7 @@
},
"trino": {
"deps": [
"apache-airflow-providers-common-sql>=1.16.1",
"apache-airflow-providers-common-sql>=1.17.0",
"apache-airflow>=2.8.0",
"pandas>=1.5.3,<2.2;python_version<\"3.9\"",
"pandas>=2.1.2,<2.2;python_version>=\"3.9\"",
Expand Down

0 comments on commit 10f7559

Please sign in to comment.