apache-airflow-providers-elasticsearch 5.3.2__py3-none-any.whl → 5.3.3__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-elasticsearch might be problematic. Click here for more details.
- airflow/providers/elasticsearch/__init__.py +1 -1
- airflow/providers/elasticsearch/get_provider_info.py +2 -1
- airflow/providers/elasticsearch/hooks/elasticsearch.py +5 -7
- airflow/providers/elasticsearch/log/es_json_formatter.py +5 -1
- {apache_airflow_providers_elasticsearch-5.3.2.dist-info → apache_airflow_providers_elasticsearch-5.3.3.dist-info}/METADATA +6 -6
- {apache_airflow_providers_elasticsearch-5.3.2.dist-info → apache_airflow_providers_elasticsearch-5.3.3.dist-info}/RECORD +8 -8
- {apache_airflow_providers_elasticsearch-5.3.2.dist-info → apache_airflow_providers_elasticsearch-5.3.3.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_elasticsearch-5.3.2.dist-info → apache_airflow_providers_elasticsearch-5.3.3.dist-info}/entry_points.txt +0 -0
|
@@ -28,8 +28,9 @@ def get_provider_info():
|
|
|
28
28
|
"name": "Elasticsearch",
|
|
29
29
|
"description": "`Elasticsearch <https://www.elastic.co/elasticsearch>`__\n",
|
|
30
30
|
"state": "ready",
|
|
31
|
-
"source-date-epoch":
|
|
31
|
+
"source-date-epoch": 1707636365,
|
|
32
32
|
"versions": [
|
|
33
|
+
"5.3.3",
|
|
33
34
|
"5.3.2",
|
|
34
35
|
"5.3.1",
|
|
35
36
|
"5.3.0",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
# under the License.
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
20
|
-
import warnings
|
|
21
20
|
from functools import cached_property
|
|
22
21
|
from typing import TYPE_CHECKING, Any
|
|
23
22
|
from urllib import parse
|
|
24
23
|
|
|
24
|
+
from deprecated import deprecated
|
|
25
25
|
from elasticsearch import Elasticsearch
|
|
26
26
|
|
|
27
27
|
from airflow.exceptions import AirflowProviderDeprecationWarning
|
|
@@ -138,6 +138,10 @@ class ElasticsearchSQLHook(DbApiHook):
|
|
|
138
138
|
return uri
|
|
139
139
|
|
|
140
140
|
|
|
141
|
+
@deprecated(
|
|
142
|
+
reason="Please use `airflow.providers.elasticsearch.hooks.elasticsearch.ElasticsearchSQLHook`.",
|
|
143
|
+
category=AirflowProviderDeprecationWarning,
|
|
144
|
+
)
|
|
141
145
|
class ElasticsearchHook(ElasticsearchSQLHook):
|
|
142
146
|
"""
|
|
143
147
|
This class is deprecated and was renamed to ElasticsearchSQLHook.
|
|
@@ -146,12 +150,6 @@ class ElasticsearchHook(ElasticsearchSQLHook):
|
|
|
146
150
|
"""
|
|
147
151
|
|
|
148
152
|
def __init__(self, *args, **kwargs):
|
|
149
|
-
warnings.warn(
|
|
150
|
-
"""This class is deprecated.
|
|
151
|
-
Please use `airflow.providers.elasticsearch.hooks.elasticsearch.ElasticsearchSQLHook`.""",
|
|
152
|
-
AirflowProviderDeprecationWarning,
|
|
153
|
-
stacklevel=3,
|
|
154
|
-
)
|
|
155
153
|
super().__init__(*args, **kwargs)
|
|
156
154
|
|
|
157
155
|
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
# under the License.
|
|
17
17
|
from __future__ import annotations
|
|
18
18
|
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
|
|
19
21
|
import pendulum
|
|
20
22
|
|
|
21
23
|
from airflow.utils.log.json_formatter import JSONFormatter
|
|
@@ -30,7 +32,9 @@ class ElasticsearchJSONFormatter(JSONFormatter):
|
|
|
30
32
|
|
|
31
33
|
def formatTime(self, record, datefmt=None):
|
|
32
34
|
"""Return the creation time of the LogRecord in ISO 8601 date/time format in the local time zone."""
|
|
33
|
-
|
|
35
|
+
# TODO: Use airflow.utils.timezone.from_timestamp(record.created, tz="local")
|
|
36
|
+
# as soon as min Airflow 2.9.0
|
|
37
|
+
dt = datetime.fromtimestamp(record.created, tz=pendulum.local_timezone())
|
|
34
38
|
s = dt.strftime(datefmt or self.default_time_format)
|
|
35
39
|
if self.default_msec_format:
|
|
36
40
|
s = self.default_msec_format % (s, record.msecs)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apache-airflow-providers-elasticsearch
|
|
3
|
-
Version: 5.3.
|
|
3
|
+
Version: 5.3.3
|
|
4
4
|
Summary: Provider package apache-airflow-providers-elasticsearch for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,elasticsearch,airflow,integration
|
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
@@ -25,8 +25,8 @@ Requires-Dist: apache-airflow>=2.6.0
|
|
|
25
25
|
Requires-Dist: elasticsearch>=8.10,<9
|
|
26
26
|
Requires-Dist: apache-airflow-providers-common-sql ; extra == "common.sql"
|
|
27
27
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
28
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
29
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
28
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.3/changelog.html
|
|
29
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.3
|
|
30
30
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
31
31
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
32
32
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
|
@@ -77,7 +77,7 @@ Provides-Extra: common.sql
|
|
|
77
77
|
|
|
78
78
|
Package ``apache-airflow-providers-elasticsearch``
|
|
79
79
|
|
|
80
|
-
Release: ``5.3.
|
|
80
|
+
Release: ``5.3.3``
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
`Elasticsearch <https://www.elastic.co/elasticsearch>`__
|
|
@@ -90,7 +90,7 @@ This is a provider package for ``elasticsearch`` provider. All classes for this
|
|
|
90
90
|
are in ``airflow.providers.elasticsearch`` python package.
|
|
91
91
|
|
|
92
92
|
You can find package information and changelog for the provider
|
|
93
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
93
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.3/>`_.
|
|
94
94
|
|
|
95
95
|
Installation
|
|
96
96
|
------------
|
|
@@ -132,4 +132,4 @@ Dependent package
|
|
|
132
132
|
============================================================================================================ ==============
|
|
133
133
|
|
|
134
134
|
The changelog for the provider package can be found in the
|
|
135
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.
|
|
135
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/5.3.3/changelog.html>`_.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
airflow/providers/elasticsearch/LICENSE,sha256=ywUBpKZc7Jb96rVt5I3IDbg7dIJAbUSHkuoDcF3jbH4,13569
|
|
2
|
-
airflow/providers/elasticsearch/__init__.py,sha256=
|
|
3
|
-
airflow/providers/elasticsearch/get_provider_info.py,sha256=
|
|
2
|
+
airflow/providers/elasticsearch/__init__.py,sha256=xU0OM4lFkXskmbyx-vZTVDf13VTDpq0vWPAmHUHitBA,1588
|
|
3
|
+
airflow/providers/elasticsearch/get_provider_info.py,sha256=2A1_0fzJ6aNY5AnWwqMx8jNFDsJAjW9Rz6TfnAy2sFw,7899
|
|
4
4
|
airflow/providers/elasticsearch/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
5
|
-
airflow/providers/elasticsearch/hooks/elasticsearch.py,sha256=
|
|
5
|
+
airflow/providers/elasticsearch/hooks/elasticsearch.py,sha256=nraT_vR1vm0VZ13G4lIJ9YEI0igsm-A66BjFlf-yNmE,6362
|
|
6
6
|
airflow/providers/elasticsearch/log/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
7
|
-
airflow/providers/elasticsearch/log/es_json_formatter.py,sha256=
|
|
7
|
+
airflow/providers/elasticsearch/log/es_json_formatter.py,sha256=DwWPDJtZLr_6Mdae1-XVEgmE1XErFIanSzxWovs50ig,1796
|
|
8
8
|
airflow/providers/elasticsearch/log/es_response.py,sha256=TSZSkf63q-uM6dju4FJXx-GVcmsbxSdx9tMdcBTXmaA,5428
|
|
9
9
|
airflow/providers/elasticsearch/log/es_task_handler.py,sha256=zXMZM13Yvc80pZNmftxL6YXcuIrCs-2wQ9-KWCUYut0,25257
|
|
10
|
-
apache_airflow_providers_elasticsearch-5.3.
|
|
11
|
-
apache_airflow_providers_elasticsearch-5.3.
|
|
12
|
-
apache_airflow_providers_elasticsearch-5.3.
|
|
13
|
-
apache_airflow_providers_elasticsearch-5.3.
|
|
10
|
+
apache_airflow_providers_elasticsearch-5.3.3.dist-info/entry_points.txt,sha256=jpgAUVmTsdtWQ4nru2FJQKP9JBN4OPHK-ybfYc3_BOs,109
|
|
11
|
+
apache_airflow_providers_elasticsearch-5.3.3.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
12
|
+
apache_airflow_providers_elasticsearch-5.3.3.dist-info/METADATA,sha256=02_Tz6hAy4M6nskDI9RDDIc1IgrEuc8tgW4KU4JLfgc,6161
|
|
13
|
+
apache_airflow_providers_elasticsearch-5.3.3.dist-info/RECORD,,
|
|
File without changes
|