apache-airflow-providers-common-sql 1.15.0__tar.gz → 1.16.0__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.

Potentially problematic release.


This version of apache-airflow-providers-common-sql might be problematic. Click here for more details.

Files changed (18) hide show
  1. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/PKG-INFO +8 -8
  2. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/README.rst +4 -4
  3. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/__init__.py +3 -3
  4. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/get_provider_info.py +3 -2
  5. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/operators/sql.py +0 -16
  6. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/pyproject.toml +4 -4
  7. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/LICENSE +0 -0
  8. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/README_API.md +0 -0
  9. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/doc/adr/0001-record-architecture-decisions.md +0 -0
  10. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/doc/adr/0002-return-common-data-structure-from-dbapihook-derived-hooks.md +0 -0
  11. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/hooks/__init__.py +0 -0
  12. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/hooks/sql.py +0 -0
  13. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/hooks/sql.pyi +0 -0
  14. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/operators/__init__.py +0 -0
  15. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/operators/sql.pyi +0 -0
  16. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/sensors/__init__.py +0 -0
  17. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/airflow/providers/common/sql/sensors/sql.py +0 -0
  18. {apache_airflow_providers_common_sql-1.15.0 → apache_airflow_providers_common_sql-1.16.0}/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.15.0
3
+ Version: 1.16.0
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>
@@ -21,15 +21,15 @@ Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
22
  Classifier: Programming Language :: Python :: 3.12
23
23
  Classifier: Topic :: System :: Monitoring
24
- Requires-Dist: apache-airflow>=2.7.0
24
+ Requires-Dist: apache-airflow>=2.8.0
25
25
  Requires-Dist: more-itertools>=9.0.0
26
26
  Requires-Dist: sqlparse>=0.4.2
27
27
  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.15.0/changelog.html
32
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.15.0
31
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0/changelog.html
32
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0
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.15.0``
84
+ Release: ``1.16.0``
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.15.0/>`_.
97
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0/>`_.
98
98
 
99
99
  Installation
100
100
  ------------
@@ -111,7 +111,7 @@ Requirements
111
111
  ================== ==================
112
112
  PIP package Version required
113
113
  ================== ==================
114
- ``apache-airflow`` ``>=2.7.0``
114
+ ``apache-airflow`` ``>=2.8.0``
115
115
  ``sqlparse`` ``>=0.4.2``
116
116
  ``more-itertools`` ``>=9.0.0``
117
117
  ================== ==================
@@ -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.15.0/changelog.html>`_.
139
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0/changelog.html>`_.
@@ -42,7 +42,7 @@
42
42
 
43
43
  Package ``apache-airflow-providers-common-sql``
44
44
 
45
- Release: ``1.15.0``
45
+ Release: ``1.16.0``
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.15.0/>`_.
58
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0/>`_.
59
59
 
60
60
  Installation
61
61
  ------------
@@ -72,7 +72,7 @@ Requirements
72
72
  ================== ==================
73
73
  PIP package Version required
74
74
  ================== ==================
75
- ``apache-airflow`` ``>=2.7.0``
75
+ ``apache-airflow`` ``>=2.8.0``
76
76
  ``sqlparse`` ``>=0.4.2``
77
77
  ``more-itertools`` ``>=9.0.0``
78
78
  ================== ==================
@@ -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.15.0/changelog.html>`_.
100
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0/changelog.html>`_.
@@ -29,11 +29,11 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "1.15.0"
32
+ __version__ = "1.16.0"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
- "2.7.0"
35
+ "2.8.0"
36
36
  ):
37
37
  raise RuntimeError(
38
- f"The package `apache-airflow-providers-common-sql:{__version__}` needs Apache Airflow 2.7.0+"
38
+ f"The package `apache-airflow-providers-common-sql:{__version__}` needs Apache Airflow 2.8.0+"
39
39
  )
@@ -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": 1722663378,
31
+ "source-date-epoch": 1723970051,
32
32
  "versions": [
33
+ "1.16.0",
33
34
  "1.15.0",
34
35
  "1.14.2",
35
36
  "1.14.1",
@@ -62,7 +63,7 @@ def get_provider_info():
62
63
  "1.1.0",
63
64
  "1.0.0",
64
65
  ],
65
- "dependencies": ["apache-airflow>=2.7.0", "sqlparse>=0.4.2", "more-itertools>=9.0.0"],
66
+ "dependencies": ["apache-airflow>=2.8.0", "sqlparse>=0.4.2", "more-itertools>=9.0.0"],
66
67
  "additional-extras": [
67
68
  {
68
69
  "name": "pandas",
@@ -153,22 +153,6 @@ class BaseSQLOperator(BaseOperator):
153
153
  conn = BaseHook.get_connection(conn_id)
154
154
  hook = conn.get_hook(hook_params=self.hook_params)
155
155
  if not isinstance(hook, DbApiHook):
156
- from airflow.hooks.dbapi_hook import DbApiHook as _DbApiHook
157
-
158
- if isinstance(hook, _DbApiHook):
159
- # This case might happen if user installed common.sql provider but did not upgrade the
160
- # Other provider's versions to a version that supports common.sql provider
161
- class_module = hook.__class__.__module__
162
- match = _PROVIDERS_MATCHER.match(class_module)
163
- if match:
164
- provider = match.group(1)
165
- min_version = _MIN_SUPPORTED_PROVIDERS_VERSION.get(provider)
166
- if min_version:
167
- raise AirflowException(
168
- f"You are trying to use common-sql with {hook.__class__.__name__},"
169
- f" but the Hook class comes from provider {provider} that does not support it."
170
- f" Please upgrade provider {provider} to at least {min_version}."
171
- )
172
156
  raise AirflowException(
173
157
  f"You are trying to use `common-sql` with {hook.__class__.__name__},"
174
158
  " but its provider does not support it. Please upgrade the provider to a version that"
@@ -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.15.0"
31
+ version = "1.16.0"
32
32
  description = "Provider package apache-airflow-providers-common-sql for Apache Airflow"
33
33
  readme = "README.rst"
34
34
  authors = [
@@ -56,14 +56,14 @@ classifiers = [
56
56
  ]
57
57
  requires-python = "~=3.8"
58
58
  dependencies = [
59
- "apache-airflow>=2.7.0",
59
+ "apache-airflow>=2.8.0",
60
60
  "more-itertools>=9.0.0",
61
61
  "sqlparse>=0.4.2",
62
62
  ]
63
63
 
64
64
  [project.urls]
65
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.15.0"
66
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.15.0/changelog.html"
65
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0"
66
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.16.0/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"