diff --git a/README.md b/README.md index 9c23f6f..75c645c 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,17 @@ # e6data Python Connector -![version](https://img.shields.io/badge/version-1.1.9-blue.svg) +![version](https://img.shields.io/badge/version-1.1.10-blue.svg) ## Introduction The e6data Connector for Python provides an interface for writing Python applications that can connect to e6data and perform operations. +#### Amazon Linux Wheel dependency +Make sure to install wheel before install e6data-python-connector. +```shell +pip install wheel +``` + To install the Python package, use the command below: ```shell pip install e6data-python-connector diff --git a/e6data_python_connector/e6data_grpc.py b/e6data_python_connector/e6data_grpc.py index 952e831..ecf443f 100644 --- a/e6data_python_connector/e6data_grpc.py +++ b/e6data_python_connector/e6data_grpc.py @@ -358,19 +358,21 @@ def close(self): def get_tables(self): schema = self.connection.database - return self.connection.get_tables(database=schema) + return self.connection.get_tables(catalog=self._catalog_name, database=schema) def get_columns(self, table): schema = self.connection.database - return self.connection.get_columns(database=schema, table=table) + return self.connection.get_columns(catalog=self._catalog_name, database=schema, table=table) def get_schema_names(self): - return self.connection.get_schema_names() + return self.connection.get_schema_names(catalog=self._catalog_name) - def clear(self): + def clear(self, query_id=None): + if not query_id: + query_id = self._query_id clear_request = e6x_engine_pb2.ClearRequest( sessionId=self.connection.get_session_id, - queryId=self._query_id, + queryId=query_id, engineIP=self._engine_ip ) return self.connection.client.clear(clear_request) diff --git a/setup.py b/setup.py index dcb6002..09590c6 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ import setuptools -VERSION = [1, 1, 9] +VERSION = [1, 1, 10] def get_long_desc():