Skip to content
Merged
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
3 changes: 3 additions & 0 deletions iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from thrift.transport import TTransport
from iotdb.thrift.rpc.IClientRPCService import TSFetchResultsReq, TSCloseOperationReq
from iotdb.tsfile.utils.DateUtils import parse_int_to_date
from iotdb.utils.IoTDBConnectionException import IoTDBConnectionException
from iotdb.utils.IoTDBConstants import TSDataType

logger = logging.getLogger("IoTDB")
Expand Down Expand Up @@ -417,6 +418,8 @@ def result_set_to_pandas(self):
return df

def fetch_results(self):
if self.__is_closed:
raise IoTDBConnectionException("This DataSet is already closed")
self.__rows_index = 0
request = TSFetchResultsReq(
self.__session_id,
Expand Down
Loading