apache-airflow-providers-common-sql 1.24.1b1__py3-none-any.whl → 1.24.1rc1__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.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "1.24.1b1"
32
+ __version__ = "1.24.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.9.0"
@@ -29,7 +29,7 @@ def get_provider_info():
29
29
  "state": "ready",
30
30
  "source-date-epoch": 1742481439,
31
31
  "versions": [
32
- "1.24.1b1",
32
+ "1.24.1",
33
33
  "1.24.0",
34
34
  "1.23.0",
35
35
  "1.21.0",
@@ -478,7 +478,7 @@ class SQLColumnCheckOperator(BaseSQLOperator):
478
478
 
479
479
  self.table = table
480
480
  self.column_mapping = column_mapping
481
- self.partition_clause = partition_clause
481
+ self.partition_clause = _initialize_partition_clause(partition_clause)
482
482
  self.accept_none = accept_none
483
483
 
484
484
  def _build_checks_sql():
@@ -699,7 +699,7 @@ class SQLTableCheckOperator(BaseSQLOperator):
699
699
 
700
700
  self.table = table
701
701
  self.checks = checks
702
- self.partition_clause = partition_clause
702
+ self.partition_clause = _initialize_partition_clause(partition_clause)
703
703
  self.sql = f"SELECT check_name, check_result FROM ({self._generate_sql_query()}) AS check_table"
704
704
 
705
705
  def execute(self, context: Context):
@@ -1243,3 +1243,14 @@ class BranchSQLOperator(BaseSQLOperator, SkipMixin):
1243
1243
 
1244
1244
  # TODO(potiuk) remove the type ignore once we solve provider <-> Task SDK relationship
1245
1245
  self.skip_all_except(context["ti"], follow_branch) # type: ignore[arg-type]
1246
+
1247
+
1248
+ def _initialize_partition_clause(clause: str | None) -> str | None:
1249
+ """Ensure the partition_clause contains only valid patterns."""
1250
+ if clause is None:
1251
+ return None
1252
+
1253
+ if ";" in clause:
1254
+ raise ValueError("Invalid partition_clause: semicolons (;) not allowed.")
1255
+
1256
+ return clause
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-common-sql
3
- Version: 1.24.1b1
3
+ Version: 1.24.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>
@@ -20,15 +20,15 @@ Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Topic :: System :: Monitoring
23
- Requires-Dist: apache-airflow>=2.9.0
23
+ Requires-Dist: apache-airflow>=2.9.0rc0
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
27
27
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
28
28
  Requires-Dist: pandas>=2.1.2,<2.2 ; extra == "pandas"
29
29
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
30
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1b1/changelog.html
31
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1b1
30
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1/changelog.html
31
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1
32
32
  Project-URL: Mastodon, https://fosstodon.org/@airflow
33
33
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
34
34
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -61,7 +61,7 @@ Provides-Extra: pandas
61
61
 
62
62
  Package ``apache-airflow-providers-common-sql``
63
63
 
64
- Release: ``1.24.1b1``
64
+ Release: ``1.24.1``
65
65
 
66
66
 
67
67
  `Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__
@@ -74,7 +74,7 @@ This is a provider package for ``common.sql`` provider. All classes for this pro
74
74
  are in ``airflow.providers.common.sql`` python package.
75
75
 
76
76
  You can find package information and changelog for the provider
77
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1b1/>`_.
77
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1/>`_.
78
78
 
79
79
  Installation
80
80
  ------------
@@ -101,7 +101,7 @@ Cross provider package dependencies
101
101
  -----------------------------------
102
102
 
103
103
  Those are dependencies that might be needed in order to use all the features of the package.
104
- You need to install the specified provider packages in order to use them.
104
+ You need to install the specified providers in order to use them.
105
105
 
106
106
  You can install such cross-provider dependencies when installing from PyPI. For example:
107
107
 
@@ -117,5 +117,5 @@ Dependent package
117
117
  ============================================================================================================== ===============
118
118
 
119
119
  The changelog for the provider package can be found in the
120
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1b1/changelog.html>`_.
120
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/1.24.1/changelog.html>`_.
121
121
 
@@ -1,7 +1,7 @@
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=zjtRSJlQSY2FFB_TavD1hyCbaU1pf9aZjjXzqIyBtfk,1500
4
- airflow/providers/common/sql/get_provider_info.py,sha256=HfFtvR2CP5b_lXSl9-eG8c-wK8nKdz67bAFrnH8UmFA,4121
3
+ airflow/providers/common/sql/__init__.py,sha256=X92Z7oz6uZm6CH5Aa9VN3-qYFrsbSF3XTbkGVumdFUE,1498
4
+ airflow/providers/common/sql/get_provider_info.py,sha256=q-xJNoCJZiSrn4BD04Kv4si5AdBcP97rkVT_mY1Td08,4119
5
5
  airflow/providers/common/sql/get_provider_info.pyi,sha256=0mydJPGQScnPpoa9-ohHVJFngFH6Lsk22KS243PE-gw,1596
6
6
  airflow/providers/common/sql/dialects/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
7
7
  airflow/providers/common/sql/dialects/dialect.py,sha256=rV4frwvKeU25AydRFA0iJEzSDAjHBAQQl4a7OLpE2Tg,7698
@@ -17,14 +17,14 @@ airflow/providers/common/sql/hooks/sql.pyi,sha256=K0B4HOgI-pczVG3K8PRSlF0tJ7FcLw
17
17
  airflow/providers/common/sql/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
18
18
  airflow/providers/common/sql/operators/generic_transfer.py,sha256=EEKKMcOOLl0vyjXRHBI6UuoFLqpHpeHEj9zwMTrNAA4,8336
19
19
  airflow/providers/common/sql/operators/generic_transfer.pyi,sha256=rhuCB7KSm_NutW8m3BNQmaoiUPDXp1fTrSeoR0Jr4dU,3330
20
- airflow/providers/common/sql/operators/sql.py,sha256=VWmaJGhT9Vi9yDICFTRPEBzZRjxcRNbX5U_YsnaoEAA,49304
20
+ airflow/providers/common/sql/operators/sql.py,sha256=7tPRqVZcp6c6kNTK8rwLmcnWXw2E9bZiQsbz70fxhdc,49669
21
21
  airflow/providers/common/sql/sensors/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
22
22
  airflow/providers/common/sql/sensors/sql.py,sha256=vJqxvDpwmGbq_6kMMqU4YjhHhcbhDhHYjJ2ufhLDmGc,5519
23
23
  airflow/providers/common/sql/sensors/sql.pyi,sha256=GiOk2qD0PO5HWISgTTdOJQLC9b2ItzvQr68adXIbjGQ,2530
24
24
  airflow/providers/common/sql/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
25
25
  airflow/providers/common/sql/triggers/sql.py,sha256=C6BEhJdypE_hrvrWU_jxJuOi5FbpQG4xJ0EYPn_fqR0,3665
26
26
  airflow/providers/common/sql/triggers/sql.pyi,sha256=7wVgfqUPJB7egsWwbZtwZV3TFm7DuKLclWetNInCM5w,1986
27
- apache_airflow_providers_common_sql-1.24.1b1.dist-info/entry_points.txt,sha256=h8UXRp2crPuGmYVYRM5oe168qIh7g-4t2QQbVMizKjI,106
28
- apache_airflow_providers_common_sql-1.24.1b1.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
29
- apache_airflow_providers_common_sql-1.24.1b1.dist-info/METADATA,sha256=r0Nt3nC0TE7Ur0DAbeOuqIvkK1A7_VPxunlselMUgKg,5291
30
- apache_airflow_providers_common_sql-1.24.1b1.dist-info/RECORD,,
27
+ apache_airflow_providers_common_sql-1.24.1rc1.dist-info/entry_points.txt,sha256=h8UXRp2crPuGmYVYRM5oe168qIh7g-4t2QQbVMizKjI,106
28
+ apache_airflow_providers_common_sql-1.24.1rc1.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
29
+ apache_airflow_providers_common_sql-1.24.1rc1.dist-info/METADATA,sha256=Po0wRSKlxTci5CVktNBLRmr-G5SdjRYrmu3a9o7fXVM,5277
30
+ apache_airflow_providers_common_sql-1.24.1rc1.dist-info/RECORD,,