Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.13.2, 1.0.0
-
None
-
2022-12-System
Description
self = <iotdb.Session.Session object at 0x000001B30F5EB2B0>
paths_list = ['root.sg2.d1.s1', 'root.sg2.d1.s2', 'root.sg2.d1.s3']
timestamp = 1
def delete_data(self, paths_list, timestamp):
"""
delete all data <= time in multiple time series
:param paths_list: time series list that the data in.
:param timestamp: data with time stamp less than or equal to time will be deleted.
"""
request = TSDeleteDataReq(self.__session_id, paths_list, timestamp)
try:
> status = self.__client.deleteData(request)
..\..\iotdb-sdk-test\venv\lib\site-packages\iotdb\Session.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <iotdb.thrift.rpc.TSIService.Client object at 0x000001B31F2EA2E0>
req = TSDeleteDataReq(sessionId=11, paths=['root.sg2.d1.s1', 'root.sg2.d1.s2', 'root.sg2.d1.s3'], startTime=1, endTime=None)
def deleteData(self, req):
"""
Parameters:
- req
"""
self.send_deleteData(req)
> return self.recv_deleteData()
..\..\iotdb-sdk-test\venv\lib\site-packages\iotdb\thrift\rpc\TSIService.py:1549:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <iotdb.thrift.rpc.TSIService.Client object at 0x000001B31F2EA2E0>
def recv_deleteData(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
> raise x
E thrift.Thrift.TApplicationException: Required field 'endTime' was not found in serialized data! Struct: org.apache.iotdb.service.rpc.thrift.TSDeleteDataReq$TSDeleteDataReqStandardScheme@75987fe6