This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 2c8ff673cc [IOTDB-3494] Fix TypeError in python session (#6292)
2c8ff673cc is described below
commit 2c8ff673ccb7358156efd313b947a3e4ec98b360
Author: Liu Xuxin <[email protected]>
AuthorDate: Wed Jun 15 11:48:33 2022 +0800
[IOTDB-3494] Fix TypeError in python session (#6292)
---
client-py/iotdb/Session.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/client-py/iotdb/Session.py b/client-py/iotdb/Session.py
index 5d451a66ab..c5a83d3e05 100644
--- a/client-py/iotdb/Session.py
+++ b/client-py/iotdb/Session.py
@@ -18,12 +18,10 @@
import logging
import struct
import time
-
-from iotdb.utils.SessionDataSet import SessionDataSet
-
from thrift.protocol import TBinaryProtocol, TCompactProtocol
from thrift.transport import TSocket, TTransport
+from iotdb.utils.SessionDataSet import SessionDataSet
from .template.Template import Template
from .template.TemplateQueryType import TemplateQueryType
from .thrift.rpc.TSIService import (
@@ -56,7 +54,6 @@ from .thrift.rpc.ttypes import (
TSLastDataQueryReq,
TSInsertStringRecordsOfOneDeviceReq,
)
-
# for debug
# from IoTDBConstants import *
# from SessionDataSet import SessionDataSet
@@ -1036,7 +1033,7 @@ class Session(object):
if status.code == Session.SUCCESS_CODE:
return 0
- logger.error("error status is", status)
+ logger.error("error status is %s", status)
return -1
def execute_raw_data_query(