e6data-python-connector 2.1.20__tar.gz → 2.1.21__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.1.20/e6data_python_connector.egg-info → e6data_python_connector-2.1.21}/PKG-INFO +2 -2
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/README.md +1 -1
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/datainputstream.py +17 -5
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/e6x_vector/ttypes.py +3 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21/e6data_python_connector.egg-info}/PKG-INFO +2 -2
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/setup.py +1 -1
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/LICENSE +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/MANIFEST.in +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/__init__.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/common.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/constants.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/date_time_utils.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/dialect.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/e6data_grpc.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/e6x_vector/__init__.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/e6x_vector/constants.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/exceptions.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/server/QueryEngineService.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/server/__init__.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/server/constants.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/server/e6x_engine_pb2.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/server/e6x_engine_pb2.pyi +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/server/e6x_engine_pb2_grpc.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/server/ttypes.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/typeId.py +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/SOURCES.txt +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/dependency_links.txt +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/entry_points.txt +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/requires.txt +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/top_level.txt +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/pyproject.toml +0 -0
- {e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.21
|
|
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: Uniphi, Inc.
|
|
@@ -27,7 +27,7 @@ Requires-Dist: sqlalchemy
|
|
|
27
27
|
|
|
28
28
|
# e6data Python Connector
|
|
29
29
|
|
|
30
|
-

|
|
31
31
|
|
|
32
32
|
## Introduction
|
|
33
33
|
|
|
@@ -231,11 +231,6 @@ def get_column_from_chunk(vector: Vector) -> list:
|
|
|
231
231
|
continue
|
|
232
232
|
epoch_micros = vector.data.timeData.data[
|
|
233
233
|
row] if not vector.isConstantVector else vector.data.timeConstantData.data
|
|
234
|
-
if ((vector.isConstantVector and vector.data.timeConstantData.zoneData is not None) or
|
|
235
|
-
(not vector.isConstantVector and vector.data.timeData.zoneData is not None)):
|
|
236
|
-
zone_id = vector.data.timeData.zoneData[
|
|
237
|
-
row] if not vector.isConstantVector else vector.data.timeConstantData.zoneData
|
|
238
|
-
zone = timezone_from_offset(zone_id)
|
|
239
234
|
epoch_seconds = floor_div(epoch_micros, 1000_000)
|
|
240
235
|
micros_of_the_day = floor_mod(epoch_micros, 1000_000)
|
|
241
236
|
date_time = datetime.fromtimestamp(epoch_seconds, zone)
|
|
@@ -286,6 +281,23 @@ def get_column_from_chunk(vector: Vector) -> list:
|
|
|
286
281
|
elif d_type == VectorType.NULL:
|
|
287
282
|
for row in range(vector.size):
|
|
288
283
|
value_array.append(None)
|
|
284
|
+
elif d_type == VectorType.TIMESTAMP_TZ:
|
|
285
|
+
for row in range(vector.size):
|
|
286
|
+
if get_null(vector, row):
|
|
287
|
+
value_array.append(None)
|
|
288
|
+
continue
|
|
289
|
+
epoch_micros = vector.data.timeData.data[
|
|
290
|
+
row] if not vector.isConstantVector else vector.data.timeConstantData.data
|
|
291
|
+
if ((vector.isConstantVector and vector.data.timeConstantData.zoneData is not None) or
|
|
292
|
+
(not vector.isConstantVector and vector.data.timeData.zoneData is not None)):
|
|
293
|
+
zone_id = vector.data.timeData.zoneData[
|
|
294
|
+
row] if not vector.isConstantVector else vector.data.timeConstantData.zoneData
|
|
295
|
+
zone = timezone_from_offset(zone_id)
|
|
296
|
+
epoch_seconds = floor_div(epoch_micros, 1000_000)
|
|
297
|
+
micros_of_the_day = floor_mod(epoch_micros, 1000_000)
|
|
298
|
+
date_time = datetime.fromtimestamp(epoch_seconds, zone)
|
|
299
|
+
date_time = date_time + timedelta(microseconds=micros_of_the_day)
|
|
300
|
+
value_array.append(date_time.isoformat(timespec='milliseconds'))
|
|
289
301
|
else:
|
|
290
302
|
value_array.append(None)
|
|
291
303
|
except Exception as e:
|
|
@@ -32,6 +32,7 @@ class VectorType(object):
|
|
|
32
32
|
MAP = 12
|
|
33
33
|
ARRAY = 13
|
|
34
34
|
NULL = 14
|
|
35
|
+
TIMESTAMP_TZ = 15
|
|
35
36
|
|
|
36
37
|
_VALUES_TO_NAMES = {
|
|
37
38
|
0: "BINARY",
|
|
@@ -49,6 +50,7 @@ class VectorType(object):
|
|
|
49
50
|
12: "MAP",
|
|
50
51
|
13: "ARRAY",
|
|
51
52
|
14: "NULL",
|
|
53
|
+
15: "TIMESTAMP_TZ",
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
_NAMES_TO_VALUES = {
|
|
@@ -67,6 +69,7 @@ class VectorType(object):
|
|
|
67
69
|
"MAP": 12,
|
|
68
70
|
"ARRAY": 13,
|
|
69
71
|
"NULL": 14,
|
|
72
|
+
"TIMESTAMP_TZ": 15,
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.21
|
|
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: Uniphi, Inc.
|
|
@@ -27,7 +27,7 @@ Requires-Dist: sqlalchemy
|
|
|
27
27
|
|
|
28
28
|
# e6data Python Connector
|
|
29
29
|
|
|
30
|
-

|
|
31
31
|
|
|
32
32
|
## Introduction
|
|
33
33
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/e6data_python_connector/dialect.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
|
{e6data_python_connector-2.1.20 → e6data_python_connector-2.1.21}/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
|