apache-airflow-providers-apache-hive 9.0.3__py3-none-any.whl → 9.0.4__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-apache-hive might be problematic. Click here for more details.
- airflow/providers/apache/hive/__init__.py +1 -1
- airflow/providers/apache/hive/get_provider_info.py +3 -1
- airflow/providers/apache/hive/hooks/hive.py +8 -1
- airflow/providers/apache/hive/operators/hive.py +10 -5
- airflow/providers/apache/hive/transfers/hive_to_mysql.py +7 -1
- airflow/providers/apache/hive/transfers/hive_to_samba.py +6 -1
- {apache_airflow_providers_apache_hive-9.0.3.dist-info → apache_airflow_providers_apache_hive-9.0.4.dist-info}/METADATA +11 -8
- {apache_airflow_providers_apache_hive-9.0.3.dist-info → apache_airflow_providers_apache_hive-9.0.4.dist-info}/RECORD +10 -10
- {apache_airflow_providers_apache_hive-9.0.3.dist-info → apache_airflow_providers_apache_hive-9.0.4.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_apache_hive-9.0.3.dist-info → apache_airflow_providers_apache_hive-9.0.4.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__ = "9.0.
|
|
32
|
+
__version__ = "9.0.4"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"2.9.0"
|
|
@@ -27,8 +27,9 @@ def get_provider_info():
|
|
|
27
27
|
"name": "Apache Hive",
|
|
28
28
|
"description": "`Apache Hive <https://hive.apache.org/>`__\n",
|
|
29
29
|
"state": "ready",
|
|
30
|
-
"source-date-epoch":
|
|
30
|
+
"source-date-epoch": 1742979243,
|
|
31
31
|
"versions": [
|
|
32
|
+
"9.0.4",
|
|
32
33
|
"9.0.3",
|
|
33
34
|
"9.0.2",
|
|
34
35
|
"9.0.0",
|
|
@@ -199,6 +200,7 @@ def get_provider_info():
|
|
|
199
200
|
"presto": ["apache-airflow-providers-presto"],
|
|
200
201
|
"samba": ["apache-airflow-providers-samba"],
|
|
201
202
|
"vertica": ["apache-airflow-providers-vertica"],
|
|
203
|
+
"common.compat": ["apache-airflow-providers-common-compat"],
|
|
202
204
|
},
|
|
203
205
|
"devel-dependencies": [],
|
|
204
206
|
}
|
|
@@ -35,10 +35,17 @@ import csv
|
|
|
35
35
|
from airflow.configuration import conf
|
|
36
36
|
from airflow.exceptions import AirflowException
|
|
37
37
|
from airflow.hooks.base import BaseHook
|
|
38
|
+
from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
|
|
38
39
|
from airflow.providers.common.sql.hooks.sql import DbApiHook
|
|
39
40
|
from airflow.security import utils
|
|
40
41
|
from airflow.utils.helpers import as_flattened_list
|
|
41
|
-
|
|
42
|
+
|
|
43
|
+
if AIRFLOW_V_3_0_PLUS:
|
|
44
|
+
from airflow.sdk.execution_time.context import AIRFLOW_VAR_NAME_FORMAT_MAPPING
|
|
45
|
+
else:
|
|
46
|
+
from airflow.utils.operator_helpers import ( # type: ignore[no-redef, attr-defined]
|
|
47
|
+
AIRFLOW_VAR_NAME_FORMAT_MAPPING,
|
|
48
|
+
)
|
|
42
49
|
|
|
43
50
|
HIVE_QUEUE_PRIORITIES = ["VERY_HIGH", "HIGH", "NORMAL", "LOW", "VERY_LOW"]
|
|
44
51
|
|
|
@@ -26,8 +26,15 @@ from typing import TYPE_CHECKING, Any
|
|
|
26
26
|
from airflow.configuration import conf
|
|
27
27
|
from airflow.models import BaseOperator
|
|
28
28
|
from airflow.providers.apache.hive.hooks.hive import HiveCliHook
|
|
29
|
-
from airflow.
|
|
30
|
-
|
|
29
|
+
from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
|
|
30
|
+
|
|
31
|
+
if AIRFLOW_V_3_0_PLUS:
|
|
32
|
+
from airflow.sdk.execution_time.context import AIRFLOW_VAR_NAME_FORMAT_MAPPING, context_to_airflow_vars
|
|
33
|
+
else:
|
|
34
|
+
from airflow.utils.operator_helpers import ( # type: ignore[no-redef, attr-defined]
|
|
35
|
+
AIRFLOW_VAR_NAME_FORMAT_MAPPING,
|
|
36
|
+
context_to_airflow_vars,
|
|
37
|
+
)
|
|
31
38
|
|
|
32
39
|
if TYPE_CHECKING:
|
|
33
40
|
from airflow.utils.context import Context
|
|
@@ -173,7 +180,5 @@ class HiveOperator(BaseOperator):
|
|
|
173
180
|
|
|
174
181
|
def clear_airflow_vars(self) -> None:
|
|
175
182
|
"""Reset airflow environment variables to prevent existing ones from impacting behavior."""
|
|
176
|
-
blank_env_vars = {
|
|
177
|
-
value["env_var_format"]: "" for value in operator_helpers.AIRFLOW_VAR_NAME_FORMAT_MAPPING.values()
|
|
178
|
-
}
|
|
183
|
+
blank_env_vars = {value["env_var_format"]: "" for value in AIRFLOW_VAR_NAME_FORMAT_MAPPING.values()}
|
|
179
184
|
os.environ.update(blank_env_vars)
|
|
@@ -25,8 +25,14 @@ from typing import TYPE_CHECKING
|
|
|
25
25
|
|
|
26
26
|
from airflow.models import BaseOperator
|
|
27
27
|
from airflow.providers.apache.hive.hooks.hive import HiveServer2Hook
|
|
28
|
+
from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
|
|
28
29
|
from airflow.providers.mysql.hooks.mysql import MySqlHook
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
if AIRFLOW_V_3_0_PLUS:
|
|
32
|
+
from airflow.sdk.execution_time.context import context_to_airflow_vars
|
|
33
|
+
else:
|
|
34
|
+
from airflow.utils.operator_helpers import context_to_airflow_vars # type: ignore[no-redef, attr-defined]
|
|
35
|
+
|
|
30
36
|
|
|
31
37
|
if TYPE_CHECKING:
|
|
32
38
|
from airflow.utils.context import Context
|
|
@@ -25,8 +25,13 @@ from typing import TYPE_CHECKING
|
|
|
25
25
|
|
|
26
26
|
from airflow.models import BaseOperator
|
|
27
27
|
from airflow.providers.apache.hive.hooks.hive import HiveServer2Hook
|
|
28
|
+
from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
|
|
28
29
|
from airflow.providers.samba.hooks.samba import SambaHook
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
if AIRFLOW_V_3_0_PLUS:
|
|
32
|
+
from airflow.sdk.execution_time.context import context_to_airflow_vars
|
|
33
|
+
else:
|
|
34
|
+
from airflow.utils.operator_helpers import context_to_airflow_vars # type: ignore[no-redef, attr-defined]
|
|
30
35
|
|
|
31
36
|
if TYPE_CHECKING:
|
|
32
37
|
from airflow.utils.context import Context
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-apache-hive
|
|
3
|
-
Version: 9.0.
|
|
3
|
+
Version: 9.0.4
|
|
4
4
|
Summary: Provider package apache-airflow-providers-apache-hive for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,apache.hive,airflow,integration
|
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
@@ -28,19 +28,21 @@ Requires-Dist: pyhive[hive-pure-sasl]>=0.7.0
|
|
|
28
28
|
Requires-Dist: thrift>=0.11.0
|
|
29
29
|
Requires-Dist: jmespath>=0.7.0
|
|
30
30
|
Requires-Dist: apache-airflow-providers-amazon ; extra == "amazon"
|
|
31
|
+
Requires-Dist: apache-airflow-providers-common-compat ; extra == "common-compat"
|
|
31
32
|
Requires-Dist: apache-airflow-providers-microsoft-mssql ; extra == "microsoft-mssql"
|
|
32
33
|
Requires-Dist: apache-airflow-providers-mysql ; extra == "mysql"
|
|
33
34
|
Requires-Dist: apache-airflow-providers-presto ; extra == "presto"
|
|
34
35
|
Requires-Dist: apache-airflow-providers-samba ; extra == "samba"
|
|
35
36
|
Requires-Dist: apache-airflow-providers-vertica ; extra == "vertica"
|
|
36
37
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
37
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.
|
|
38
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.
|
|
38
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.4/changelog.html
|
|
39
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.4
|
|
40
|
+
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
39
41
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
40
42
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
41
|
-
Project-URL: Twitter, https://x.com/ApacheAirflow
|
|
42
43
|
Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
43
44
|
Provides-Extra: amazon
|
|
45
|
+
Provides-Extra: common-compat
|
|
44
46
|
Provides-Extra: microsoft-mssql
|
|
45
47
|
Provides-Extra: mysql
|
|
46
48
|
Provides-Extra: presto
|
|
@@ -72,7 +74,7 @@ Provides-Extra: vertica
|
|
|
72
74
|
|
|
73
75
|
Package ``apache-airflow-providers-apache-hive``
|
|
74
76
|
|
|
75
|
-
Release: ``9.0.
|
|
77
|
+
Release: ``9.0.4``
|
|
76
78
|
|
|
77
79
|
|
|
78
80
|
`Apache Hive <https://hive.apache.org/>`__
|
|
@@ -85,7 +87,7 @@ This is a provider package for ``apache.hive`` provider. All classes for this pr
|
|
|
85
87
|
are in ``airflow.providers.apache.hive`` python package.
|
|
86
88
|
|
|
87
89
|
You can find package information and changelog for the provider
|
|
88
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.
|
|
90
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.4/>`_.
|
|
89
91
|
|
|
90
92
|
Installation
|
|
91
93
|
------------
|
|
@@ -115,7 +117,7 @@ Cross provider package dependencies
|
|
|
115
117
|
-----------------------------------
|
|
116
118
|
|
|
117
119
|
Those are dependencies that might be needed in order to use all the features of the package.
|
|
118
|
-
You need to install the specified
|
|
120
|
+
You need to install the specified providers in order to use them.
|
|
119
121
|
|
|
120
122
|
You can install such cross-provider dependencies when installing from PyPI. For example:
|
|
121
123
|
|
|
@@ -128,6 +130,7 @@ You can install such cross-provider dependencies when installing from PyPI. For
|
|
|
128
130
|
Dependent package Extra
|
|
129
131
|
====================================================================================================================== ===================
|
|
130
132
|
`apache-airflow-providers-amazon <https://airflow.apache.org/docs/apache-airflow-providers-amazon>`_ ``amazon``
|
|
133
|
+
`apache-airflow-providers-common-compat <https://airflow.apache.org/docs/apache-airflow-providers-common-compat>`_ ``common.compat``
|
|
131
134
|
`apache-airflow-providers-common-sql <https://airflow.apache.org/docs/apache-airflow-providers-common-sql>`_ ``common.sql``
|
|
132
135
|
`apache-airflow-providers-microsoft-mssql <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-mssql>`_ ``microsoft.mssql``
|
|
133
136
|
`apache-airflow-providers-mysql <https://airflow.apache.org/docs/apache-airflow-providers-mysql>`_ ``mysql``
|
|
@@ -137,5 +140,5 @@ Dependent package
|
|
|
137
140
|
====================================================================================================================== ===================
|
|
138
141
|
|
|
139
142
|
The changelog for the provider package can be found in the
|
|
140
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.
|
|
143
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-apache-hive/9.0.4/changelog.html>`_.
|
|
141
144
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
airflow/providers/apache/hive/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
|
-
airflow/providers/apache/hive/__init__.py,sha256=
|
|
3
|
-
airflow/providers/apache/hive/get_provider_info.py,sha256=
|
|
2
|
+
airflow/providers/apache/hive/__init__.py,sha256=_jqs9drxQWVsEPtd6g4x8bWbdb5vgabhV7CIhBL1CBg,1498
|
|
3
|
+
airflow/providers/apache/hive/get_provider_info.py,sha256=_SyJoIzZuwyefDeJ1ij8qceBchgmnSD3qDvaE3fainE,7547
|
|
4
4
|
airflow/providers/apache/hive/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
5
|
-
airflow/providers/apache/hive/hooks/hive.py,sha256=
|
|
5
|
+
airflow/providers/apache/hive/hooks/hive.py,sha256=oDLegXFihuehkxZSAePvY3pP7Huc7vsiVJBkRkTL9jo,42825
|
|
6
6
|
airflow/providers/apache/hive/macros/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
7
7
|
airflow/providers/apache/hive/macros/hive.py,sha256=p3LUIb74pbthh8lcUXV6f3m-cZrcRXjV8aGiazdpnzo,4592
|
|
8
8
|
airflow/providers/apache/hive/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
9
|
-
airflow/providers/apache/hive/operators/hive.py,sha256=
|
|
9
|
+
airflow/providers/apache/hive/operators/hive.py,sha256=QU7-zSc57bk8mNpFVuAmBmIcHiyqiN-OMCzyFwceETY,7348
|
|
10
10
|
airflow/providers/apache/hive/operators/hive_stats.py,sha256=8fNlR9o8J9DKMDBpB849apqA2iGbMovlHOWute4TFCY,7074
|
|
11
11
|
airflow/providers/apache/hive/plugins/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
12
12
|
airflow/providers/apache/hive/plugins/hive.py,sha256=rrGccro6DEdnHSmII3goBYD9te-XdhPaPMjWpF-36HU,1146
|
|
@@ -15,13 +15,13 @@ airflow/providers/apache/hive/sensors/hive_partition.py,sha256=UIafLmwTUXdNfWAhL
|
|
|
15
15
|
airflow/providers/apache/hive/sensors/metastore_partition.py,sha256=H-luvQ96TRp5Oax0LIoag4rlnKiDlkJCsYNh80-IzXU,3365
|
|
16
16
|
airflow/providers/apache/hive/sensors/named_hive_partition.py,sha256=5R3NJ_Vi9nqROD9VPs-YXnziYhWd-X5ukgelLwfngy4,4185
|
|
17
17
|
airflow/providers/apache/hive/transfers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
18
|
-
airflow/providers/apache/hive/transfers/hive_to_mysql.py,sha256=
|
|
19
|
-
airflow/providers/apache/hive/transfers/hive_to_samba.py,sha256=
|
|
18
|
+
airflow/providers/apache/hive/transfers/hive_to_mysql.py,sha256=PX4clGkdNTyXDFi_Hj5WxaVzY-L8Z6DVEVTCyH6amD4,5536
|
|
19
|
+
airflow/providers/apache/hive/transfers/hive_to_samba.py,sha256=tfyIt2I0IIQcYtubKJvhmwEjyo3m2-FffEuFc3aCHks,3237
|
|
20
20
|
airflow/providers/apache/hive/transfers/mssql_to_hive.py,sha256=SQGcJTAKPoRipmWLdudN_wATBNqd_2eMRgokcjkPmjQ,5644
|
|
21
21
|
airflow/providers/apache/hive/transfers/mysql_to_hive.py,sha256=6BkAoYrn9wDfSC0BKHp86EgoUVtqwHGz9nZsielCydQ,7022
|
|
22
22
|
airflow/providers/apache/hive/transfers/s3_to_hive.py,sha256=K5Zke6CF9Rgw7YDkOtWIYXC3_2TuXLTuwYxu8uVrGP0,12455
|
|
23
23
|
airflow/providers/apache/hive/transfers/vertica_to_hive.py,sha256=IBiMGF7322rOrwDbWMVB89oKO8hFhhBmc6rQwPkFA34,5555
|
|
24
|
-
apache_airflow_providers_apache_hive-9.0.
|
|
25
|
-
apache_airflow_providers_apache_hive-9.0.
|
|
26
|
-
apache_airflow_providers_apache_hive-9.0.
|
|
27
|
-
apache_airflow_providers_apache_hive-9.0.
|
|
24
|
+
apache_airflow_providers_apache_hive-9.0.4.dist-info/entry_points.txt,sha256=Hzixt33mYYldwmwswarArUB7ZU0xbmUtd3tFViZ414s,185
|
|
25
|
+
apache_airflow_providers_apache_hive-9.0.4.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
|
|
26
|
+
apache_airflow_providers_apache_hive-9.0.4.dist-info/METADATA,sha256=Aptl_c2RDj_4yhxQAzK5Wgl1noC96-G2YMprYzXEk_A,7194
|
|
27
|
+
apache_airflow_providers_apache_hive-9.0.4.dist-info/RECORD,,
|
|
File without changes
|