e6data-python-connector 2.0.1__py3-none-any.whl → 2.0.2__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.
@@ -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
- date_time = datetime.fromtimestamp(epoch_seconds, ZONE)
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:
@@ -395,6 +395,7 @@ class Cursor(DBAPICursor):
395
395
  """
396
396
  Semicolon is now not supported. So removing it from query end.
397
397
  """
398
+ operation = operation.strip() # Remove leading and trailing whitespaces.
398
399
  if operation.endswith(';'):
399
400
  operation = operation[:-1]
400
401
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: e6data-python-connector
3
- Version: 2.0.1
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
- ![version](https://img.shields.io/badge/version-2.0.1-blue.svg)
30
+ ![version](https://img.shields.io/badge/version-2.0.2-blue.svg)
31
31
 
32
32
  ## Introduction
33
33
 
@@ -1,10 +1,10 @@
1
1
  e6data_python_connector/__init__.py,sha256=x_VwhPQ7XLlthR-NJL9Vl7lkLBRCG2pSjmyZSBHOBpM,103
2
2
  e6data_python_connector/common.py,sha256=nk0CDQ5j1iu8DctBOXX4QypPYmxSgIgoA-Cn1UZXLic,9976
3
3
  e6data_python_connector/constants.py,sha256=h5w0lWiFsxz__zUZRlo1f72-8mT_vt9gcWvtWh0viFI,682
4
- e6data_python_connector/datainputstream.py,sha256=wxWY2PU8nPS44Exms7jfjpJYz1C_HOOsBga8tVXu5gg,11242
4
+ e6data_python_connector/datainputstream.py,sha256=nGSXn86oRpkY5orZ7Y6S0WRDNpK6hHT8ABQ-gSmhS-0,11365
5
5
  e6data_python_connector/date_time_utils.py,sha256=ew1CjhfB93trRdu8jBOy2ihZNSecDPcmxS1USmWxqzE,13623
6
6
  e6data_python_connector/dialect.py,sha256=-FFQ4mjSviqfcnDC0Ju0c1p3i4XqFLmekPd-CSZ_g0Q,10938
7
- e6data_python_connector/e6data_grpc.py,sha256=pTDfGak340wmP3aqFe-0ZNH2L2-ID6rg0LIIqxwE_Xc,20766
7
+ e6data_python_connector/e6data_grpc.py,sha256=-wPh3JVBetVPeTWTED7TMge2TbGNotgP0l5kaDqyuuY,20848
8
8
  e6data_python_connector/exceptions.py,sha256=vrUqdzMq3LjbCmvr5_TcRq9eKmdqGfe-uVjR0BJQf5U,382
9
9
  e6data_python_connector/typeId.py,sha256=2EMNWK2SO5CBReNuJphma6xp-69r9GDwwys66t-kSk0,1777
10
10
  e6data_python_connector/e6x_vector/__init__.py,sha256=YFcZTT8Cm-6Y4oTiCaqq0DT1lw2W09WqoEc5_pTAwW0,34
@@ -17,9 +17,9 @@ e6data_python_connector/server/e6x_engine_pb2.py,sha256=2aShk-jX1UQxFzMVx58gXf9N
17
17
  e6data_python_connector/server/e6x_engine_pb2.pyi,sha256=z5olI2I4xHNivRULRmsEXvuEpmxX2vlnUMk8YarmMY8,17824
18
18
  e6data_python_connector/server/e6x_engine_pb2_grpc.py,sha256=pezNVTO8oSCDcVr0fYi-zlr2X71Q6nDNeMooVNHMITo,45052
19
19
  e6data_python_connector/server/ttypes.py,sha256=uWxwSp4m6e-7SeSEckbZtSduGYmfzXWM09iy5eltBPA,21227
20
- e6data_python_connector-2.0.1.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
21
- e6data_python_connector-2.0.1.dist-info/METADATA,sha256=8BykS9vVqcqnZtUcmY-aaumktysFuNYEsiFXzLSHdpQ,6976
22
- e6data_python_connector-2.0.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
23
- e6data_python_connector-2.0.1.dist-info/entry_points.txt,sha256=MDK4cAOND0preLvq2Tlpnz00wXnP_Y_UopqJsAf3U7Y,77
24
- e6data_python_connector-2.0.1.dist-info/top_level.txt,sha256=ChOS6qLf-SQycXr0uBiVxomIfYfbH2SgwrOWhW79ab0,24
25
- e6data_python_connector-2.0.1.dist-info/RECORD,,
20
+ e6data_python_connector-2.0.2.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
21
+ e6data_python_connector-2.0.2.dist-info/METADATA,sha256=W1Veb5m1ilH4WrxVQYeg6tsTxWeLWj1OTv6okr7gkLg,6976
22
+ e6data_python_connector-2.0.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
23
+ e6data_python_connector-2.0.2.dist-info/entry_points.txt,sha256=MDK4cAOND0preLvq2Tlpnz00wXnP_Y_UopqJsAf3U7Y,77
24
+ e6data_python_connector-2.0.2.dist-info/top_level.txt,sha256=ChOS6qLf-SQycXr0uBiVxomIfYfbH2SgwrOWhW79ab0,24
25
+ e6data_python_connector-2.0.2.dist-info/RECORD,,