Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# e6data Python Connector

![version](https://img.shields.io/badge/version-1.0.3-blue.svg)
![version](https://img.shields.io/badge/version-1.0.4-blue.svg)

## Introduction

Expand Down
2 changes: 1 addition & 1 deletion e6xdb/server/QueryEngineService-remote
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Autogenerated by Thrift Compiler (0.17.0)
# Autogenerated by Thrift Compiler (0.18.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
Expand Down
2 changes: 1 addition & 1 deletion e6xdb/server/QueryEngineService.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion e6xdb/server/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions e6xdb/server/ttypes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ namespace java io.e6x.engine.thrift
exception QueryProcessingException
{
1: string reason,
2: string queryId,
}

exception AccessDeniedException
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

envstring = lambda var: os.environ.get(var) or ""

VERSION = [1, 0, 3]
VERSION = [1, 0, 4]


def get_long_desc():
Expand Down
13 changes: 3 additions & 10 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
from unittest import TestCase
import e6xdb.e6x as edb

import json
import logging

logging.getLogger(__name__)
Expand All @@ -19,16 +19,9 @@ def setUp(self) -> None:
self.e6x_connection = edb.connect(
host=self._host,
port=9000,
scheme='e6xdb',
username='vishal@e6x.io',
database=self._database,
auth=None,
configuration=None,
kerberos_service_name=None,
password='75cei^%$TREdgfhU&T^RTYDrchfgvjy65dhcgf',
check_hostname=None,
ssl_cert=None,
thrift_transport=None
)
logging.debug('Successfully to connect to engine.')

Expand Down Expand Up @@ -97,13 +90,13 @@ def test_query_5_dry_run(self):
def test_query_5_caches(self):
sql = "select * from date_dim limit 3"
logging.debug('Executing query: {}'.format(sql))
self.e6x_connection.set_or_update_caches(True)
self.e6x_connection.set_prop_map(json.dumps(dict(USE_QUERY_RESULT_CACHE=True)))
cursor = self.e6x_connection.cursor()
query_id = cursor.execute(sql)
logging.debug('Query Id {}'.format(query_id))
self.assertIsNotNone(query_id)
records = cursor.fetchall()
self.e6x_connection.set_or_update_caches(False)
self.e6x_connection.set_prop_map(json.dumps(dict(USE_QUERY_RESULT_CACHE=False)))
now = time.time()
query_id = cursor.execute(sql)
logging.debug('Query Id {}'.format(query_id))
Expand Down