apache-airflow-providers-snowflake 5.8.0rc1__py3-none-any.whl → 5.8.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__ = "5.8.0"
32
+ __version__ = "5.8.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": "Snowflake",
29
29
  "description": "`Snowflake <https://www.snowflake.com/>`__\n",
30
30
  "state": "ready",
31
- "source-date-epoch": 1728485406,
31
+ "source-date-epoch": 1731570837,
32
32
  "versions": [
33
+ "5.8.1",
33
34
  "5.8.0",
34
35
  "5.7.1",
35
36
  "5.7.0",
@@ -86,7 +87,7 @@ def get_provider_info():
86
87
  "dependencies": [
87
88
  "apache-airflow>=2.8.0",
88
89
  "apache-airflow-providers-common-compat>=1.1.0",
89
- "apache-airflow-providers-common-sql>=1.14.1",
90
+ "apache-airflow-providers-common-sql>=1.20.0",
90
91
  'pandas>=2.1.2,<2.2;python_version>="3.9"',
91
92
  'pandas>=1.5.3,<2.2;python_version<"3.9"',
92
93
  "pyarrow>=14.0.1",
@@ -327,9 +327,10 @@ class SnowflakeSqlApiHook(SnowflakeHook):
327
327
  """
328
328
  self.log.info("Retrieving status for query id %s", query_id)
329
329
  header, params, url = self.get_request_url_header_params(query_id)
330
- async with aiohttp.ClientSession(headers=header) as session, session.get(
331
- url, params=params
332
- ) as response:
330
+ async with (
331
+ aiohttp.ClientSession(headers=header) as session,
332
+ session.get(url, params=params) as response,
333
+ ):
333
334
  status_code = response.status
334
335
  resp = await response.json()
335
336
  return self._process_response(status_code, resp)
@@ -19,7 +19,7 @@ from __future__ import annotations
19
19
 
20
20
  import time
21
21
  from datetime import timedelta
22
- from typing import TYPE_CHECKING, Any, Iterable, List, Mapping, Sequence, SupportsAbs, cast
22
+ from typing import TYPE_CHECKING, Any, ClassVar, Iterable, List, Mapping, Sequence, SupportsAbs, cast
23
23
 
24
24
  from deprecated import deprecated
25
25
 
@@ -88,7 +88,7 @@ class SnowflakeOperator(SQLExecuteQueryOperator):
88
88
 
89
89
  template_fields: Sequence[str] = ("sql",)
90
90
  template_ext: Sequence[str] = (".sql",)
91
- template_fields_renderers = {"sql": "sql"}
91
+ template_fields_renderers: ClassVar[dict] = {"sql": "sql"}
92
92
  ui_color = "#ededed"
93
93
 
94
94
  def __init__(
@@ -19,7 +19,7 @@ from __future__ import annotations
19
19
 
20
20
  from typing import Any, Callable, Collection, Mapping, Sequence
21
21
 
22
- from airflow.operators.python import PythonOperator, get_current_context
22
+ from airflow.providers.common.compat.standard.operators import PythonOperator, get_current_context
23
23
  from airflow.providers.snowflake.hooks.snowflake import SnowflakeHook
24
24
  from airflow.providers.snowflake.utils.snowpark import inject_session_into_op_kwargs
25
25
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: apache-airflow-providers-snowflake
3
- Version: 5.8.0rc1
3
+ Version: 5.8.1rc1
4
4
  Summary: Provider package apache-airflow-providers-snowflake for Apache Airflow
5
5
  Keywords: airflow-provider,snowflake,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Topic :: System :: Monitoring
23
23
  Requires-Dist: apache-airflow-providers-common-compat>=1.1.0rc0
24
- Requires-Dist: apache-airflow-providers-common-sql>=1.14.1rc0
24
+ Requires-Dist: apache-airflow-providers-common-sql>=1.20.0rc0
25
25
  Requires-Dist: apache-airflow>=2.8.0rc0
26
26
  Requires-Dist: pandas>=1.5.3,<2.2;python_version<"3.9"
27
27
  Requires-Dist: pandas>=2.1.2,<2.2;python_version>="3.9"
@@ -29,18 +29,18 @@ Requires-Dist: pyarrow>=14.0.1
29
29
  Requires-Dist: snowflake-connector-python>=3.7.1
30
30
  Requires-Dist: snowflake-snowpark-python>=1.17.0;python_version<"3.12"
31
31
  Requires-Dist: snowflake-sqlalchemy>=1.4.0
32
- Requires-Dist: apache-airflow-providers-common-compat ; extra == "common.compat"
33
- Requires-Dist: apache-airflow-providers-common-sql ; extra == "common.sql"
32
+ Requires-Dist: apache-airflow-providers-common-compat ; extra == "common-compat"
33
+ Requires-Dist: apache-airflow-providers-common-sql ; extra == "common-sql"
34
34
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
35
35
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
36
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.0/changelog.html
37
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.0
36
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.1/changelog.html
37
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.1
38
38
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
39
39
  Project-URL: Source Code, https://github.com/apache/airflow
40
40
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
41
41
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
42
- Provides-Extra: common.compat
43
- Provides-Extra: common.sql
42
+ Provides-Extra: common-compat
43
+ Provides-Extra: common-sql
44
44
  Provides-Extra: openlineage
45
45
 
46
46
 
@@ -87,7 +87,7 @@ Provides-Extra: openlineage
87
87
 
88
88
  Package ``apache-airflow-providers-snowflake``
89
89
 
90
- Release: ``5.8.0.rc1``
90
+ Release: ``5.8.1.rc1``
91
91
 
92
92
 
93
93
  `Snowflake <https://www.snowflake.com/>`__
@@ -100,7 +100,7 @@ This is a provider package for ``snowflake`` provider. All classes for this prov
100
100
  are in ``airflow.providers.snowflake`` python package.
101
101
 
102
102
  You can find package information and changelog for the provider
103
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.0/>`_.
103
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.1/>`_.
104
104
 
105
105
  Installation
106
106
  ------------
@@ -119,7 +119,7 @@ PIP package Version required
119
119
  ========================================== =========================================
120
120
  ``apache-airflow`` ``>=2.8.0``
121
121
  ``apache-airflow-providers-common-compat`` ``>=1.1.0``
122
- ``apache-airflow-providers-common-sql`` ``>=1.14.1``
122
+ ``apache-airflow-providers-common-sql`` ``>=1.20.0``
123
123
  ``pandas`` ``>=2.1.2,<2.2; python_version >= "3.9"``
124
124
  ``pandas`` ``>=1.5.3,<2.2; python_version < "3.9"``
125
125
  ``pyarrow`` ``>=14.0.1``
@@ -150,4 +150,4 @@ Dependent package
150
150
  ================================================================================================================== =================
151
151
 
152
152
  The changelog for the provider package can be found in the
153
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.0/changelog.html>`_.
153
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.8.1/changelog.html>`_.
@@ -1,14 +1,14 @@
1
1
  airflow/providers/snowflake/LICENSE,sha256=FFb4jd2AXnOOf7XLP04pQW6jbdhG49TxlGY6fFpCV1Y,13609
2
- airflow/providers/snowflake/__init__.py,sha256=0RCIUHljBBlgI2CQOzHINZvlOelaZwDgDmk0ErJxhDA,1496
3
- airflow/providers/snowflake/get_provider_info.py,sha256=zLC0P5NT0JsgOc2Re5_-IwiTzolExHLcIqouxucVtH0,5597
2
+ airflow/providers/snowflake/__init__.py,sha256=_r2nXT6QOk0nssSgFJRLty85FiH7ihTMGE9b4OURW9Y,1496
3
+ airflow/providers/snowflake/get_provider_info.py,sha256=IqV3yKHMRt-FwCLx5OHQpSMlfYlQwozPNwkyID-4FVo,5618
4
4
  airflow/providers/snowflake/decorators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
5
5
  airflow/providers/snowflake/decorators/snowpark.py,sha256=Jn6iPGH2nzWvRCLFsG8ofk9FpIXEQXTolt3vdfOXJTM,5271
6
6
  airflow/providers/snowflake/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
7
7
  airflow/providers/snowflake/hooks/snowflake.py,sha256=OE8k8XOcdIfhNmGMpm-QlQw-5VMs2Qd7iUXJ4Yosu7w,22184
8
- airflow/providers/snowflake/hooks/snowflake_sql_api.py,sha256=gaNQi-cW1hRQRQwCOoPMdbgLXVlQsKdD6DasAJHVl9M,15471
8
+ airflow/providers/snowflake/hooks/snowflake_sql_api.py,sha256=3W3wGAWRUxu1K62qqw682vBrXrRzyEmoCYID7PlMfaA,15486
9
9
  airflow/providers/snowflake/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
10
- airflow/providers/snowflake/operators/snowflake.py,sha256=xfgGzW98_XwxWnk1-kyF2nSPGX58HDxXgKwxwwlA4tc,26415
11
- airflow/providers/snowflake/operators/snowpark.py,sha256=2yT3exZmfigqpYYtqfdh_uC97Nc7hL5ZVSS8s7ytRf0,5762
10
+ airflow/providers/snowflake/operators/snowflake.py,sha256=fuWlkqcQ4QqFMJ5EKZwwnfs-E1tyynzMDbS0CiF2aUM,26441
11
+ airflow/providers/snowflake/operators/snowpark.py,sha256=-XRG1oNUgWJUDrYf0VI8pO8TSJhtwnMNhpaquYCf6Xg,5788
12
12
  airflow/providers/snowflake/transfers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
13
13
  airflow/providers/snowflake/transfers/copy_into_snowflake.py,sha256=2n7nqtzsH89vyb-5dAWZWNxBp0xySqnRxaItGtYVo8k,12484
14
14
  airflow/providers/snowflake/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
@@ -18,7 +18,7 @@ airflow/providers/snowflake/utils/common.py,sha256=DG-KLy2KpZWAqZqm_XIECm8lmdoUl
18
18
  airflow/providers/snowflake/utils/openlineage.py,sha256=XkcYvb_cXG8tZQ6h1IwhfGCkOVf7MSBfOxW0WLGBW0s,3257
19
19
  airflow/providers/snowflake/utils/snowpark.py,sha256=lw_tleNGFJICtTw2qCJ3TjWFOwZK1t8ZCIfYumS2Q18,1616
20
20
  airflow/providers/snowflake/utils/sql_api_generate_jwt.py,sha256=9mR-vHIquv60tfAni87f6FAjKsiRHUDDrsVhzw4M9vM,6762
21
- apache_airflow_providers_snowflake-5.8.0rc1.dist-info/entry_points.txt,sha256=bCrl5J1PXUMzbgnrKYho61rkbL2gHRT4I6f_1jlxAX4,105
22
- apache_airflow_providers_snowflake-5.8.0rc1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
23
- apache_airflow_providers_snowflake-5.8.0rc1.dist-info/METADATA,sha256=f86Z33ItXvEWWwYurl4Xbjn8eeDx3a0fl_AG3kdtyrQ,7481
24
- apache_airflow_providers_snowflake-5.8.0rc1.dist-info/RECORD,,
21
+ apache_airflow_providers_snowflake-5.8.1rc1.dist-info/entry_points.txt,sha256=bCrl5J1PXUMzbgnrKYho61rkbL2gHRT4I6f_1jlxAX4,105
22
+ apache_airflow_providers_snowflake-5.8.1rc1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
23
+ apache_airflow_providers_snowflake-5.8.1rc1.dist-info/METADATA,sha256=ajjjUoIHwp9D-PHymLeQSHXwJE8gKDvVOkyMIVQyftk,7481
24
+ apache_airflow_providers_snowflake-5.8.1rc1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.9.0
2
+ Generator: flit 3.10.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any