apache-airflow-providers-snowflake 5.6.1rc1__py3-none-any.whl → 5.7.0__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,11 +29,11 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "5.6.1"
32
+ __version__ = "5.7.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-snowflake:{__version__}` needs Apache Airflow 2.7.0+"
38
+ f"The package `apache-airflow-providers-snowflake:{__version__}` needs Apache Airflow 2.8.0+"
39
39
  )
@@ -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": 1722664874,
31
+ "source-date-epoch": 1723970579,
32
32
  "versions": [
33
+ "5.7.0",
33
34
  "5.6.1",
34
35
  "5.6.0",
35
36
  "5.5.2",
@@ -81,7 +82,7 @@ def get_provider_info():
81
82
  "1.0.0",
82
83
  ],
83
84
  "dependencies": [
84
- "apache-airflow>=2.7.0",
85
+ "apache-airflow>=2.8.0",
85
86
  "apache-airflow-providers-common-compat>=1.1.0",
86
87
  "apache-airflow-providers-common-sql>=1.14.1",
87
88
  'pandas>=2.1.2,<2.2;python_version>="3.9"',
@@ -158,10 +158,13 @@ class SnowflakeSqlApiHook(SnowflakeHook):
158
158
  data = {
159
159
  "statement": sql,
160
160
  "resultSetMetaData": {"format": "json"},
161
- "database": conn_config["database"],
162
- "schema": conn_config["schema"],
163
- "warehouse": conn_config["warehouse"],
164
- "role": conn_config["role"],
161
+ # If database, schema, warehouse, role parameters have been provided set them accordingly
162
+ # If either of them has been not (Parent class initializes them to None in that case)
163
+ # set them to what in the Airflow connection configuration
164
+ "database": self.database or conn_config["database"],
165
+ "schema": self.schema or conn_config["schema"],
166
+ "warehouse": self.warehouse or conn_config["warehouse"],
167
+ "role": self.role or conn_config["role"],
165
168
  "bindings": bindings,
166
169
  "parameters": {
167
170
  "MULTI_STATEMENT_COUNT": statement_count,
@@ -505,6 +505,7 @@ class SnowflakeSqlApiOperator(SQLExecuteQueryOperator):
505
505
  token_life_time=self.token_life_time,
506
506
  token_renewal_delta=self.token_renewal_delta,
507
507
  deferrable=self.deferrable,
508
+ **self.hook_params,
508
509
  )
509
510
  self.query_ids = self._hook.execute_query(
510
511
  self.sql, # type: ignore[arg-type]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-snowflake
3
- Version: 5.6.1rc1
3
+ Version: 5.7.0
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,9 +21,9 @@ 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-providers-common-compat>=1.1.0rc0
25
- Requires-Dist: apache-airflow-providers-common-sql>=1.14.1rc0
26
- Requires-Dist: apache-airflow>=2.7.0rc0
24
+ Requires-Dist: apache-airflow-providers-common-compat>=1.1.0
25
+ Requires-Dist: apache-airflow-providers-common-sql>=1.14.1
26
+ Requires-Dist: apache-airflow>=2.8.0
27
27
  Requires-Dist: pandas>=1.5.3,<2.2;python_version<"3.9"
28
28
  Requires-Dist: pandas>=2.1.2,<2.2;python_version>="3.9"
29
29
  Requires-Dist: pyarrow>=14.0.1
@@ -33,8 +33,8 @@ Requires-Dist: apache-airflow-providers-common-compat ; extra == "common.compat"
33
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.6.1/changelog.html
37
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.6.1
36
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.7.0/changelog.html
37
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.7.0
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
@@ -87,7 +87,7 @@ Provides-Extra: openlineage
87
87
 
88
88
  Package ``apache-airflow-providers-snowflake``
89
89
 
90
- Release: ``5.6.1.rc1``
90
+ Release: ``5.7.0``
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.6.1/>`_.
103
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.7.0/>`_.
104
104
 
105
105
  Installation
106
106
  ------------
@@ -117,7 +117,7 @@ Requirements
117
117
  ========================================== =========================================
118
118
  PIP package Version required
119
119
  ========================================== =========================================
120
- ``apache-airflow`` ``>=2.7.0``
120
+ ``apache-airflow`` ``>=2.8.0``
121
121
  ``apache-airflow-providers-common-compat`` ``>=1.1.0``
122
122
  ``apache-airflow-providers-common-sql`` ``>=1.14.1``
123
123
  ``pandas`` ``>=2.1.2,<2.2; python_version >= "3.9"``
@@ -149,4 +149,4 @@ Dependent package
149
149
  ================================================================================================================== =================
150
150
 
151
151
  The changelog for the provider package can be found in the
152
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.6.1/changelog.html>`_.
152
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-snowflake/5.7.0/changelog.html>`_.
@@ -1,11 +1,11 @@
1
1
  airflow/providers/snowflake/LICENSE,sha256=FFb4jd2AXnOOf7XLP04pQW6jbdhG49TxlGY6fFpCV1Y,13609
2
- airflow/providers/snowflake/__init__.py,sha256=zFPmN8PbAQCuonoRkFV5_kAV1vXH-EruXdHn6uHyW30,1496
3
- airflow/providers/snowflake/get_provider_info.py,sha256=RncCPoxw5_GB8ekiRCDhqNXnN9BSPGlypQ0XH2v-KRo,5029
2
+ airflow/providers/snowflake/__init__.py,sha256=iIdPbY0bV4NnVWCVyJissbpHfQXS7RLeAdNQv-InH4A,1496
3
+ airflow/providers/snowflake/get_provider_info.py,sha256=eOKGtxoQj_nPYC1bqItknPLw8d5JnB4RDGXnIsOaBYc,5050
4
4
  airflow/providers/snowflake/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
5
5
  airflow/providers/snowflake/hooks/snowflake.py,sha256=nwBZjQWZWrfg7cFEJl5T2SajXc4fKV3O7giD4t4mdO0,21444
6
- airflow/providers/snowflake/hooks/snowflake_sql_api.py,sha256=ljm6v0CCeej7WyrK3IB6F6p954s5FRgEsocfUCQ83Is,14777
6
+ airflow/providers/snowflake/hooks/snowflake_sql_api.py,sha256=aT5nckO0TPjz_pr-vZK1FMMNqCX_DIUJ1G7zRz-HAjs,15111
7
7
  airflow/providers/snowflake/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
8
- airflow/providers/snowflake/operators/snowflake.py,sha256=Evn8RfBTjLaSqrj7Dkhvu2-ewJoY6miTUFMiTTVd_dA,26383
8
+ airflow/providers/snowflake/operators/snowflake.py,sha256=xfgGzW98_XwxWnk1-kyF2nSPGX58HDxXgKwxwwlA4tc,26415
9
9
  airflow/providers/snowflake/transfers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
10
10
  airflow/providers/snowflake/transfers/copy_into_snowflake.py,sha256=2n7nqtzsH89vyb-5dAWZWNxBp0xySqnRxaItGtYVo8k,12484
11
11
  airflow/providers/snowflake/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
@@ -14,7 +14,7 @@ airflow/providers/snowflake/utils/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2x
14
14
  airflow/providers/snowflake/utils/common.py,sha256=DG-KLy2KpZWAqZqm_XIECm8lmdoUlzwkXv9onmkQThc,1644
15
15
  airflow/providers/snowflake/utils/openlineage.py,sha256=b4qfJbMiTJNNhL0jMnRqff6DX5eyOaUYVnmJrEeqULY,2678
16
16
  airflow/providers/snowflake/utils/sql_api_generate_jwt.py,sha256=9mR-vHIquv60tfAni87f6FAjKsiRHUDDrsVhzw4M9vM,6762
17
- apache_airflow_providers_snowflake-5.6.1rc1.dist-info/entry_points.txt,sha256=bCrl5J1PXUMzbgnrKYho61rkbL2gHRT4I6f_1jlxAX4,105
18
- apache_airflow_providers_snowflake-5.6.1rc1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
19
- apache_airflow_providers_snowflake-5.6.1rc1.dist-info/METADATA,sha256=ES3-9so7zD7IyVutlWaSEiJXkgeNHCQ4ViA5-tNgWnQ,7382
20
- apache_airflow_providers_snowflake-5.6.1rc1.dist-info/RECORD,,
17
+ apache_airflow_providers_snowflake-5.7.0.dist-info/entry_points.txt,sha256=bCrl5J1PXUMzbgnrKYho61rkbL2gHRT4I6f_1jlxAX4,105
18
+ apache_airflow_providers_snowflake-5.7.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
19
+ apache_airflow_providers_snowflake-5.7.0.dist-info/METADATA,sha256=VLPNpVh-HeYfSk9cPdd0YHiIC9sNP2m_BRlxvxy2c0o,7366
20
+ apache_airflow_providers_snowflake-5.7.0.dist-info/RECORD,,