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.7-blue.svg)
![version](https://img.shields.io/badge/version-1.0.8-blue.svg)

## Introduction

Expand Down
43 changes: 1 addition & 42 deletions e6xdb/e6x.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def execute(self, operation, parameters=None, **kwargs):
"""
Semicolon is now not supported. So removing it from query end.
"""
operation = operation.strip()
if operation.endswith(';'):
operation = operation[:-1]

Expand Down Expand Up @@ -516,45 +517,3 @@ class Error(Exception):
for type_id in PRIMITIVE_TYPES:
name = TypeId._VALUES_TO_NAMES[type_id]
setattr(sys.modules[__name__], name, DBAPITypeObject([name]))


if __name__ == '__main__':
ip = '54.205.255.188'
conn = Connection(
host=ip,
username='admin',
password='admin',
port=9000
)
catalogs = {'catalogs': [{
"type": 'HIVE',
"name": 'hive',
"hive_ip": '18.233.112.169',
"hive_port": 9084,
"included_schemas": [],
"excluded_schemas": [],
"included_tables": [],
"excluded_tables": [],
"included_columns": [],
"excluded_columns": [],
"is_assumed_role": False,
"assumed_role_arn": '',
"default": True
}]}
import json
import time
start = time.time()
# print(conn.add_catalogs(json.dumps(catalogs)))
add_cat_time = time.time()
print('Add catalog time', add_cat_time - start)
status = 'in_progress'
res = conn.get_add_catalog_response()
print(res)
print(res.failures[0].reason)
# while status == 'in_progress':
# res = conn.get_add_catalog_response()
# status = res.status
# print(res)
# time.sleep(5)
print('get_add_catalog_response time', time.time() - add_cat_time)

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, 7]
VERSION = [1, 0, 8]


def get_long_desc():
Expand Down