e6data-python-connector 2.0.1__tar.gz → 2.0.2__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.0.1/e6data_python_connector.egg-info → e6data-python-connector-2.0.2}/PKG-INFO +2 -2
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/README.md +1 -1
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/datainputstream.py +4 -4
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/e6data_grpc.py +1 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2/e6data_python_connector.egg-info}/PKG-INFO +2 -2
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/setup.py +1 -1
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/LICENSE +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/MANIFEST.in +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/__init__.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/common.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/constants.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/date_time_utils.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/dialect.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/e6x_vector/__init__.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/e6x_vector/constants.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/e6x_vector/ttypes.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/exceptions.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/server/QueryEngineService.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/server/__init__.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/server/constants.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/server/e6x_engine_pb2.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/server/e6x_engine_pb2.pyi +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/server/e6x_engine_pb2_grpc.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/server/ttypes.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/typeId.py +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector.egg-info/SOURCES.txt +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector.egg-info/dependency_links.txt +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector.egg-info/entry_points.txt +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector.egg-info/requires.txt +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector.egg-info/top_level.txt +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/pyproject.toml +0 -0
- {e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
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
|
|
|
@@ -8,7 +8,7 @@ from thrift.transport import TTransport
|
|
|
8
8
|
|
|
9
9
|
from e6data_python_connector.e6x_vector.ttypes import Chunk, Vector, VectorType
|
|
10
10
|
from e6data_python_connector.constants import ZONE
|
|
11
|
-
from e6data_python_connector.date_time_utils import floor_div, floor_mod
|
|
11
|
+
from e6data_python_connector.date_time_utils import floor_div, floor_mod, get_zone
|
|
12
12
|
|
|
13
13
|
try:
|
|
14
14
|
from thrift.protocol import fastbinary
|
|
@@ -224,11 +224,11 @@ def get_column_from_chunk(vector: Vector) -> list:
|
|
|
224
224
|
if vector.nullSet[row]:
|
|
225
225
|
value_array.append(None)
|
|
226
226
|
continue
|
|
227
|
-
epoch_micros = vector.data.timeData.data[
|
|
228
|
-
row] if not vector.isConstantVector else vector.data.timeConstantData.data
|
|
227
|
+
epoch_micros = vector.data.timeData.data[row] if not vector.isConstantVector else vector.data.timeConstantData.data
|
|
229
228
|
epoch_seconds = floor_div(epoch_micros, 1000_000)
|
|
230
229
|
micros_of_the_day = floor_mod(epoch_micros, 1000_000)
|
|
231
|
-
|
|
230
|
+
zone_offset = pytz.timezone('UTC') if vector.zoneOffset == 'Z' else pytz.timezone(get_zone(vector.zoneOffset))
|
|
231
|
+
date_time = datetime.fromtimestamp(epoch_seconds, zone_offset)
|
|
232
232
|
date_time = date_time + timedelta(microseconds=micros_of_the_day)
|
|
233
233
|
value_array.append(date_time.strftime("%Y-%m-%d %H:%M:%S"))
|
|
234
234
|
elif d_type == VectorType.STRING or d_type == VectorType.ARRAY or d_type == VectorType.MAP or d_type == VectorType.STRUCT:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
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
|
{e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/__init__.py
RENAMED
|
File without changes
|
{e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/common.py
RENAMED
|
File without changes
|
{e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/e6data_python_connector/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{e6data-python-connector-2.0.1 → e6data-python-connector-2.0.2}/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.0.1 → e6data-python-connector-2.0.2}/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
|