e6data-python-connector 2.2.4__tar.gz → 2.2.5rc1__tar.gz
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.
- {e6data_python_connector-2.2.4/e6data_python_connector.egg-info → e6data_python_connector-2.2.5rc1}/PKG-INFO +2 -2
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/README.md +1 -1
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/cluster_manager.py +2 -2
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/dialect.py +9 -1
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/e6data_grpc.py +8 -1
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1/e6data_python_connector.egg-info}/PKG-INFO +2 -2
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/setup.py +1 -1
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/LICENSE +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/MANIFEST.in +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/__init__.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/cluster_server/__init__.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/cluster_server/cluster_pb2.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/cluster_server/cluster_pb2_grpc.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/common.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/constants.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/datainputstream.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/date_time_utils.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/e6x_vector/__init__.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/e6x_vector/constants.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/e6x_vector/ttypes.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/exceptions.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/server/QueryEngineService.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/server/__init__.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/server/constants.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/server/e6x_engine_pb2.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/server/e6x_engine_pb2.pyi +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/server/e6x_engine_pb2_grpc.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/server/ttypes.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/typeId.py +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector.egg-info/SOURCES.txt +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector.egg-info/dependency_links.txt +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector.egg-info/entry_points.txt +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector.egg-info/requires.txt +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector.egg-info/top_level.txt +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/pyproject.toml +0 -0
- {e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.5rc1
|
|
4
4
|
Summary: Client for the e6data distributed SQL Engine.
|
|
5
5
|
Home-page: https://github.com/e6x-labs/e6data-python-connector
|
|
6
6
|
Author: e6data, Inc.
|
|
@@ -38,7 +38,7 @@ Dynamic: summary
|
|
|
38
38
|
|
|
39
39
|
# e6data Python Connector
|
|
40
40
|
|
|
41
|
-

|
|
42
42
|
|
|
43
43
|
## Introduction
|
|
44
44
|
|
|
@@ -136,7 +136,7 @@ class ClusterManager:
|
|
|
136
136
|
cluster_uuid (str): The unique identifier for the target cluster.
|
|
137
137
|
"""
|
|
138
138
|
|
|
139
|
-
def __init__(self, host: str, port: int, user: str, password: str, secure_channel: bool = False, timeout=60 *
|
|
139
|
+
def __init__(self, host: str, port: int, user: str, password: str, secure_channel: bool = False, timeout=60 * 5, cluster_uuid=None, grpc_options=None):
|
|
140
140
|
"""
|
|
141
141
|
Initializes a new instance of the ClusterManager class.
|
|
142
142
|
|
|
@@ -148,7 +148,7 @@ class ClusterManager:
|
|
|
148
148
|
secure_channel (bool, optional): Whether to use a secure
|
|
149
149
|
gRPC channel for communication; defaults to False.
|
|
150
150
|
timeout (int, optional): The timeout duration (in seconds) for operations;
|
|
151
|
-
defaults to
|
|
151
|
+
defaults to 5 minutes.
|
|
152
152
|
cluster_uuid (str, optional): The unique identifier for the target cluster;
|
|
153
153
|
defaults to None.
|
|
154
154
|
"""
|
|
@@ -235,6 +235,13 @@ class E6dataDialect(default.DefaultDialect):
|
|
|
235
235
|
if not self.catalog_name:
|
|
236
236
|
raise Exception('Please specify catalog in query parameter.')
|
|
237
237
|
|
|
238
|
+
# Extract grpc_options from query params
|
|
239
|
+
grpc_options = {}
|
|
240
|
+
for key, value in url.query.items():
|
|
241
|
+
# Skip known parameters that are not grpc_options
|
|
242
|
+
if key not in {"schema", "catalog", "cluster-uuid", "secure", "auto-resume"}:
|
|
243
|
+
grpc_options[key] = value
|
|
244
|
+
|
|
238
245
|
kwargs = {
|
|
239
246
|
"host": url.host,
|
|
240
247
|
"port": url.port,
|
|
@@ -245,7 +252,8 @@ class E6dataDialect(default.DefaultDialect):
|
|
|
245
252
|
"catalog": self.catalog_name,
|
|
246
253
|
"cluster_uuid": self.cluster_uuid,
|
|
247
254
|
'secure': self.secure,
|
|
248
|
-
'auto_resume': self.auto_resume
|
|
255
|
+
'auto_resume': self.auto_resume,
|
|
256
|
+
'grpc_options': grpc_options
|
|
249
257
|
}
|
|
250
258
|
return [], kwargs
|
|
251
259
|
|
|
@@ -198,6 +198,12 @@ class Connection(object):
|
|
|
198
198
|
if self._grpc_options is None:
|
|
199
199
|
self._grpc_options = dict()
|
|
200
200
|
self.grpc_prepare_timeout = self._grpc_options.get('grpc_prepare_timeout') or 10 * 60 # 10 minutes
|
|
201
|
+
self.grpc_auto_resume_timeout_seconds = 60 * 5 # 5 minutes
|
|
202
|
+
if 'grpc_auto_resume_timeout_seconds' in self._grpc_options:
|
|
203
|
+
"""
|
|
204
|
+
The default maximum time on client side to wait for the cluster to resume is 5 minutes.
|
|
205
|
+
"""
|
|
206
|
+
self.grpc_auto_resume_timeout_seconds = self._grpc_options.pop('grpc_auto_resume_timeout_seconds')
|
|
201
207
|
self._create_client()
|
|
202
208
|
|
|
203
209
|
@property
|
|
@@ -305,7 +311,8 @@ class Connection(object):
|
|
|
305
311
|
user=self.__username,
|
|
306
312
|
password=self.__password,
|
|
307
313
|
secure_channel=self._secure_channel,
|
|
308
|
-
cluster_uuid=self.cluster_uuid
|
|
314
|
+
cluster_uuid=self.cluster_uuid,
|
|
315
|
+
timeout=self.grpc_auto_resume_timeout_seconds
|
|
309
316
|
).resume()
|
|
310
317
|
if status:
|
|
311
318
|
authenticate_request = e6x_engine_pb2.AuthenticateRequest(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.5rc1
|
|
4
4
|
Summary: Client for the e6data distributed SQL Engine.
|
|
5
5
|
Home-page: https://github.com/e6x-labs/e6data-python-connector
|
|
6
6
|
Author: e6data, Inc.
|
|
@@ -38,7 +38,7 @@ Dynamic: summary
|
|
|
38
38
|
|
|
39
39
|
# e6data Python Connector
|
|
40
40
|
|
|
41
|
-

|
|
42
42
|
|
|
43
43
|
## Introduction
|
|
44
44
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e6data_python_connector-2.2.4 → e6data_python_connector-2.2.5rc1}/e6data_python_connector/typeId.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|