This is an automated email from the ASF dual-hosted git repository.

leirui pushed a commit to branch research/M4-visualization
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit b634e42dd1d02963329fb9ec3923f3235dd74acc
Author: Lei Rui <[email protected]>
AuthorDate: Mon Jun 12 14:32:35 2023 +0800

    modify python-iotdb-connector add execute_finish
---
 client-py/iotdb/Session.py              | 7 +++++++
 client-py/iotdb/utils/IoTDBConstants.py | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/client-py/iotdb/Session.py b/client-py/iotdb/Session.py
index 5a44312a5f9..7e861ffb247 100644
--- a/client-py/iotdb/Session.py
+++ b/client-py/iotdb/Session.py
@@ -168,6 +168,13 @@ class Session(object):
 
         return Session.verify_success(status)
 
+    def execute_finish(self):
+        resp = self.__client.executeFinish()
+        logger.debug(
+          "execute_finish message: {}".format(resp.executionInfo)
+        )
+        return resp.executionInfo
+
     def delete_storage_group(self, storage_group):
         """
         delete one storage group.
diff --git a/client-py/iotdb/utils/IoTDBConstants.py 
b/client-py/iotdb/utils/IoTDBConstants.py
index eb2d89c5317..9a1a1564668 100644
--- a/client-py/iotdb/utils/IoTDBConstants.py
+++ b/client-py/iotdb/utils/IoTDBConstants.py
@@ -33,6 +33,9 @@ class TSDataType(Enum):
     def __eq__(self, other) -> bool:
         return self.value == other.value
 
+    def __hash__(self):
+        return self.value
+
 
 @unique
 class TSEncoding(Enum):

Reply via email to