e6data-python-connector 2.1.19__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.19/e6data_python_connector.egg-info → e6data_python_connector-2.1.21}/PKG-INFO +2 -2
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/README.md +1 -1
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/datainputstream.py +20 -5
- e6data_python_connector-2.1.21/e6data_python_connector/e6x_vector/__init__.py +1 -0
- {e6data_python_connector-2.1.19/e6data_python_connector/server → e6data_python_connector-2.1.21/e6data_python_connector/e6x_vector}/constants.py +1 -1
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/e6x_vector/ttypes.py +7 -1
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21/e6data_python_connector.egg-info}/PKG-INFO +2 -2
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/setup.py +1 -1
- e6data_python_connector-2.1.19/e6data_python_connector/e6x_vector/__init__.py +0 -1
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/LICENSE +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/MANIFEST.in +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/__init__.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/common.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/constants.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/date_time_utils.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/dialect.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/e6data_grpc.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/exceptions.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/server/QueryEngineService.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/server/__init__.py +0 -0
- {e6data_python_connector-2.1.19/e6data_python_connector/e6x_vector → e6data_python_connector-2.1.21/e6data_python_connector/server}/constants.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/server/e6x_engine_pb2.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/server/e6x_engine_pb2.pyi +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/server/e6x_engine_pb2_grpc.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/server/ttypes.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector/typeId.py +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/SOURCES.txt +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/dependency_links.txt +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/entry_points.txt +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/requires.txt +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/e6data_python_connector.egg-info/top_level.txt +0 -0
- {e6data_python_connector-2.1.19 → e6data_python_connector-2.1.21}/pyproject.toml +0 -0
- {e6data_python_connector-2.1.19 → 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)
|
|
@@ -283,6 +278,26 @@ def get_column_from_chunk(vector: Vector) -> list:
|
|
|
283
278
|
continue
|
|
284
279
|
value_array.append(vector.data.int32Data.data[
|
|
285
280
|
row] if not vector.isConstantVector else vector.data.numericConstantData.data)
|
|
281
|
+
elif d_type == VectorType.NULL:
|
|
282
|
+
for row in range(vector.size):
|
|
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'))
|
|
286
301
|
else:
|
|
287
302
|
value_array.append(None)
|
|
288
303
|
except Exception as e:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__all__ = ['ttypes', 'constants']
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.20.0)
|
|
3
3
|
#
|
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
5
|
#
|
|
@@ -31,6 +31,8 @@ class VectorType(object):
|
|
|
31
31
|
STRUCT = 11
|
|
32
32
|
MAP = 12
|
|
33
33
|
ARRAY = 13
|
|
34
|
+
NULL = 14
|
|
35
|
+
TIMESTAMP_TZ = 15
|
|
34
36
|
|
|
35
37
|
_VALUES_TO_NAMES = {
|
|
36
38
|
0: "BINARY",
|
|
@@ -47,6 +49,8 @@ class VectorType(object):
|
|
|
47
49
|
11: "STRUCT",
|
|
48
50
|
12: "MAP",
|
|
49
51
|
13: "ARRAY",
|
|
52
|
+
14: "NULL",
|
|
53
|
+
15: "TIMESTAMP_TZ",
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
_NAMES_TO_VALUES = {
|
|
@@ -64,6 +68,8 @@ class VectorType(object):
|
|
|
64
68
|
"STRUCT": 11,
|
|
65
69
|
"MAP": 12,
|
|
66
70
|
"ARRAY": 13,
|
|
71
|
+
"NULL": 14,
|
|
72
|
+
"TIMESTAMP_TZ": 15,
|
|
67
73
|
}
|
|
68
74
|
|
|
69
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
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__all__ = ['ttypes', 'constants']
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e6data_python_connector-2.1.19 → 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.19 → 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
|
{e6data_python_connector-2.1.19 → 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
|