apache-airflow-providers-common-sql 1.17.0rc1__tar.gz → 1.17.1rc1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/PKG-INFO +6 -6
  2. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/README.rst +3 -3
  3. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/__init__.py +1 -1
  4. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/get_provider_info.py +2 -1
  5. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/hooks/sql.py +11 -0
  6. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/hooks/sql.pyi +2 -0
  7. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/operators/sql.py +1 -1
  8. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/operators/sql.pyi +1 -1
  9. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/pyproject.toml +3 -3
  10. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/LICENSE +0 -0
  11. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/README_API.md +0 -0
  12. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/doc/adr/0001-record-architecture-decisions.md +0 -0
  13. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/doc/adr/0002-return-common-data-structure-from-dbapihook-derived-hooks.md +0 -0
  14. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/hooks/__init__.py +0 -0
  15. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/operators/__init__.py +0 -0
  16. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/sensors/__init__.py +0 -0
  17. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/sensors/sql.py +0 -0
  18. {apache_airflow_providers_common_sql-1.17.0rc1 → apache_airflow_providers_common_sql-1.17.1rc1}/airflow/providers/common/sql/sensors/sql.pyi +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-common-sql
3
- Version: 1.17.0rc1
3
+ Version: 1.17.1rc1
4
4
  Summary: Provider package apache-airflow-providers-common-sql for Apache Airflow
5
5
  Keywords: airflow-provider,common.sql,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -28,8 +28,8 @@ Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
28
28
  Requires-Dist: pandas>=2.1.2,<2.2 ; extra == "pandas" and (python_version>="3.9")
29
29
  Requires-Dist: pandas>=1.5.3,<2.2 ; extra == "pandas" and (python_version<"3.9")
30
30
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
31
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0/changelog.html
32
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0
31
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1/changelog.html
32
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1
33
33
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
34
34
  Project-URL: Source Code, https://github.com/apache/airflow
35
35
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
@@ -81,7 +81,7 @@ Provides-Extra: pandas
81
81
 
82
82
  Package ``apache-airflow-providers-common-sql``
83
83
 
84
- Release: ``1.17.0.rc1``
84
+ Release: ``1.17.1.rc1``
85
85
 
86
86
 
87
87
  `Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__
@@ -94,7 +94,7 @@ This is a provider package for ``common.sql`` provider. All classes for this pro
94
94
  are in ``airflow.providers.common.sql`` python package.
95
95
 
96
96
  You can find package information and changelog for the provider
97
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0/>`_.
97
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1/>`_.
98
98
 
99
99
  Installation
100
100
  ------------
@@ -136,4 +136,4 @@ Dependent package
136
136
  ============================================================================================================== ===============
137
137
 
138
138
  The changelog for the provider package can be found in the
139
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0/changelog.html>`_.
139
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1/changelog.html>`_.
@@ -42,7 +42,7 @@
42
42
 
43
43
  Package ``apache-airflow-providers-common-sql``
44
44
 
45
- Release: ``1.17.0.rc1``
45
+ Release: ``1.17.1.rc1``
46
46
 
47
47
 
48
48
  `Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__
@@ -55,7 +55,7 @@ This is a provider package for ``common.sql`` provider. All classes for this pro
55
55
  are in ``airflow.providers.common.sql`` python package.
56
56
 
57
57
  You can find package information and changelog for the provider
58
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0/>`_.
58
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1/>`_.
59
59
 
60
60
  Installation
61
61
  ------------
@@ -97,4 +97,4 @@ Dependent package
97
97
  ============================================================================================================== ===============
98
98
 
99
99
  The changelog for the provider package can be found in the
100
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0/changelog.html>`_.
100
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1/changelog.html>`_.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "1.17.0"
32
+ __version__ = "1.17.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.8.0"
@@ -28,8 +28,9 @@ def get_provider_info():
28
28
  "name": "Common SQL",
29
29
  "description": "`Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__\n",
30
30
  "state": "ready",
31
- "source-date-epoch": 1723970051,
31
+ "source-date-epoch": 1727372263,
32
32
  "versions": [
33
+ "1.17.1",
33
34
  "1.17.0",
34
35
  "1.16.0",
35
36
  "1.15.0",
@@ -210,6 +210,17 @@ class DbApiHook(BaseHook):
210
210
  self._connection = self.get_connection(self.get_conn_id())
211
211
  return self._connection
212
212
 
213
+ @connection.setter
214
+ def connection(self, value: Any) -> None:
215
+ # This setter is for backward compatibility and should not be used.
216
+ # Since the introduction of connection property, the providers listed below
217
+ # breaks due to assigning value to self.connection
218
+ #
219
+ # apache-airflow-providers-mysql<5.7.1
220
+ # apache-airflow-providers-elasticsearch<5.5.1
221
+ # apache-airflow-providers-postgres<5.13.0
222
+ pass
223
+
213
224
  @property
214
225
  def connection_extra(self) -> dict:
215
226
  return self.connection.extra_dejson
@@ -70,6 +70,8 @@ class DbApiHook(BaseHook):
70
70
  def placeholder(self): ...
71
71
  @property
72
72
  def connection(self) -> Connection: ...
73
+ @connection.setter
74
+ def connection(self, value: Any) -> None: ...
73
75
  @property
74
76
  def connection_extra(self) -> dict: ...
75
77
  @cached_property
@@ -221,7 +221,7 @@ class SQLExecuteQueryOperator(BaseSQLOperator):
221
221
  sql: str | list[str],
222
222
  autocommit: bool = False,
223
223
  parameters: Mapping | Iterable | None = None,
224
- handler: Callable[[Any], Any] = fetch_all_handler,
224
+ handler: Callable[[Any], list[tuple] | None] = fetch_all_handler,
225
225
  conn_id: str | None = None,
226
226
  database: str | None = None,
227
227
  split_statements: bool | None = None,
@@ -89,7 +89,7 @@ class SQLExecuteQueryOperator(BaseSQLOperator):
89
89
  sql: str | list[str],
90
90
  autocommit: bool = False,
91
91
  parameters: Mapping | Iterable | None = None,
92
- handler: Callable[[Any], Any] = ...,
92
+ handler: Callable[[Any], list[tuple] | None] = ...,
93
93
  conn_id: str | None = None,
94
94
  database: str | None = None,
95
95
  split_statements: bool | None = None,
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
28
28
 
29
29
  [project]
30
30
  name = "apache-airflow-providers-common-sql"
31
- version = "1.17.0.rc1"
31
+ version = "1.17.1.rc1"
32
32
  description = "Provider package apache-airflow-providers-common-sql for Apache Airflow"
33
33
  readme = "README.rst"
34
34
  authors = [
@@ -62,8 +62,8 @@ dependencies = [
62
62
  ]
63
63
 
64
64
  [project.urls]
65
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0"
66
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.0/changelog.html"
65
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1"
66
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.17.1/changelog.html"
67
67
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
68
68
  "Source Code" = "https://github.com/apache/airflow"
69
69
  "Slack Chat" = "https://s.apache.org/airflow-slack"