apache-airflow-providers-common-sql 1.27.4__py3-none-any.whl → 1.27.5rc1__py3-none-any.whl
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.
- airflow/providers/common/sql/__init__.py +1 -1
- airflow/providers/common/sql/operators/sql.py +3 -1
- {apache_airflow_providers_common_sql-1.27.4.dist-info → apache_airflow_providers_common_sql-1.27.5rc1.dist-info}/METADATA +7 -7
- {apache_airflow_providers_common_sql-1.27.4.dist-info → apache_airflow_providers_common_sql-1.27.5rc1.dist-info}/RECORD +6 -6
- {apache_airflow_providers_common_sql-1.27.4.dist-info → apache_airflow_providers_common_sql-1.27.5rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_common_sql-1.27.4.dist-info → apache_airflow_providers_common_sql-1.27.5rc1.dist-info}/entry_points.txt +0 -0
|
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
|
29
29
|
|
|
30
30
|
__all__ = ["__version__"]
|
|
31
31
|
|
|
32
|
-
__version__ = "1.27.
|
|
32
|
+
__version__ = "1.27.5"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"2.10.0"
|
|
@@ -863,6 +863,7 @@ class SQLValueCheckOperator(BaseSQLOperator):
|
|
|
863
863
|
tolerance: Any = None,
|
|
864
864
|
conn_id: str | None = None,
|
|
865
865
|
database: str | None = None,
|
|
866
|
+
parameters: Iterable | Mapping[str, Any] | None = None,
|
|
866
867
|
**kwargs,
|
|
867
868
|
):
|
|
868
869
|
super().__init__(conn_id=conn_id, database=database, **kwargs)
|
|
@@ -871,6 +872,7 @@ class SQLValueCheckOperator(BaseSQLOperator):
|
|
|
871
872
|
tol = _convert_to_float_if_possible(tolerance)
|
|
872
873
|
self.tol = tol if isinstance(tol, float) else None
|
|
873
874
|
self.has_tolerance = self.tol is not None
|
|
875
|
+
self.parameters = parameters
|
|
874
876
|
|
|
875
877
|
def check_value(self, records):
|
|
876
878
|
if not records:
|
|
@@ -903,7 +905,7 @@ class SQLValueCheckOperator(BaseSQLOperator):
|
|
|
903
905
|
|
|
904
906
|
def execute(self, context: Context):
|
|
905
907
|
self.log.info("Executing SQL check: %s", self.sql)
|
|
906
|
-
records = self.get_db_hook().get_first(self.sql)
|
|
908
|
+
records = self.get_db_hook().get_first(self.sql, self.parameters)
|
|
907
909
|
self.check_value(records)
|
|
908
910
|
|
|
909
911
|
def _to_float(self, records):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-common-sql
|
|
3
|
-
Version: 1.27.
|
|
3
|
+
Version: 1.27.5rc1
|
|
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>
|
|
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
|
23
|
-
Requires-Dist: apache-airflow>=2.10.
|
|
23
|
+
Requires-Dist: apache-airflow>=2.10.0rc1
|
|
24
24
|
Requires-Dist: sqlparse>=0.5.1
|
|
25
25
|
Requires-Dist: more-itertools>=9.0.0
|
|
26
26
|
Requires-Dist: methodtools>=0.4.7
|
|
@@ -29,8 +29,8 @@ Requires-Dist: pandas[sql-other]>=2.1.2 ; extra == "pandas" and ( python_version
|
|
|
29
29
|
Requires-Dist: pandas>=2.2.3 ; extra == "pandas" and ( python_version >="3.13")
|
|
30
30
|
Requires-Dist: polars>=1.26.0 ; extra == "polars"
|
|
31
31
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
32
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.27.
|
|
33
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.27.
|
|
32
|
+
Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-sql/1.27.5/changelog.html
|
|
33
|
+
Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-sql/1.27.5
|
|
34
34
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
35
35
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
36
36
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
@@ -64,7 +64,7 @@ Provides-Extra: polars
|
|
|
64
64
|
|
|
65
65
|
Package ``apache-airflow-providers-common-sql``
|
|
66
66
|
|
|
67
|
-
Release: ``1.27.
|
|
67
|
+
Release: ``1.27.5``
|
|
68
68
|
|
|
69
69
|
Release Date: ``|PypiReleaseDate|``
|
|
70
70
|
|
|
@@ -78,7 +78,7 @@ This is a provider package for ``common.sql`` provider. All classes for this pro
|
|
|
78
78
|
are in ``airflow.providers.common.sql`` python package.
|
|
79
79
|
|
|
80
80
|
You can find package information and changelog for the provider
|
|
81
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.27.
|
|
81
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.27.5/>`_.
|
|
82
82
|
|
|
83
83
|
Installation
|
|
84
84
|
------------
|
|
@@ -121,5 +121,5 @@ Dependent package
|
|
|
121
121
|
============================================================================================================== ===============
|
|
122
122
|
|
|
123
123
|
The changelog for the provider package can be found in the
|
|
124
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.27.
|
|
124
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.27.5/changelog.html>`_.
|
|
125
125
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
airflow/providers/common/sql/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
2
|
airflow/providers/common/sql/README_API.md,sha256=CxhaS8EedZ4dcbLUPC4-GLCMaY3OH96oHxXttUGU06E,5932
|
|
3
|
-
airflow/providers/common/sql/__init__.py,sha256=
|
|
3
|
+
airflow/providers/common/sql/__init__.py,sha256=GYsP_yzmgFFZm75gJtaQiXoEyNOg8QyA8BIANzQq7p0,1500
|
|
4
4
|
airflow/providers/common/sql/get_provider_info.py,sha256=xCPXLKFA_1ilhGa0aB3E9ggdHtn9Do7Eb469begpZag,2767
|
|
5
5
|
airflow/providers/common/sql/get_provider_info.pyi,sha256=0mydJPGQScnPpoa9-ohHVJFngFH6Lsk22KS243PE-gw,1596
|
|
6
6
|
airflow/providers/common/sql/version_compat.py,sha256=WKfSWhm-ZTmqCuSo6UMn9GiEgzfCMGEso4BR52V4A4c,2105
|
|
@@ -18,14 +18,14 @@ airflow/providers/common/sql/hooks/sql.pyi,sha256=EIQZ6-MDhT8vzdpq9b-8PDn1drdr0j
|
|
|
18
18
|
airflow/providers/common/sql/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
19
19
|
airflow/providers/common/sql/operators/generic_transfer.py,sha256=HorM0suydgf1rHH3V53YyKbd1BiiS4hxZeksIBo0ROs,8322
|
|
20
20
|
airflow/providers/common/sql/operators/generic_transfer.pyi,sha256=rhuCB7KSm_NutW8m3BNQmaoiUPDXp1fTrSeoR0Jr4dU,3330
|
|
21
|
-
airflow/providers/common/sql/operators/sql.py,sha256=
|
|
21
|
+
airflow/providers/common/sql/operators/sql.py,sha256=Di6-LJrWzaSjww0pAw-1N9VeJwazzRb-Ug5z6PJE5Lg,50274
|
|
22
22
|
airflow/providers/common/sql/sensors/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
23
23
|
airflow/providers/common/sql/sensors/sql.py,sha256=osPBiu7atWLEe2fH9FTmwm0aXJ12JggcGuwJwjkWOko,5464
|
|
24
24
|
airflow/providers/common/sql/sensors/sql.pyi,sha256=gJ_WPbqsbFBZWKnZcRmaPfRYgpUb9_7_65PPc9VIymM,2691
|
|
25
25
|
airflow/providers/common/sql/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
26
26
|
airflow/providers/common/sql/triggers/sql.py,sha256=3xTxMf2oSE8X8IhP22pmlSoEYmJIIFmi8HmsNbiLek0,3690
|
|
27
27
|
airflow/providers/common/sql/triggers/sql.pyi,sha256=7wVgfqUPJB7egsWwbZtwZV3TFm7DuKLclWetNInCM5w,1986
|
|
28
|
-
apache_airflow_providers_common_sql-1.27.
|
|
29
|
-
apache_airflow_providers_common_sql-1.27.
|
|
30
|
-
apache_airflow_providers_common_sql-1.27.
|
|
31
|
-
apache_airflow_providers_common_sql-1.27.
|
|
28
|
+
apache_airflow_providers_common_sql-1.27.5rc1.dist-info/entry_points.txt,sha256=h8UXRp2crPuGmYVYRM5oe168qIh7g-4t2QQbVMizKjI,106
|
|
29
|
+
apache_airflow_providers_common_sql-1.27.5rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
30
|
+
apache_airflow_providers_common_sql-1.27.5rc1.dist-info/METADATA,sha256=buabAyMJRk6GjnwwABlm1zkZ_FtDtjIA-KbCvK90ORc,5521
|
|
31
|
+
apache_airflow_providers_common_sql-1.27.5rc1.dist-info/RECORD,,
|
|
File without changes
|