linxt20 opened a new pull request, #12308:
URL: https://github.com/apache/iotdb/pull/12308

   This code submission solves the problem that using hasNext twice in 
succession in the query result SessionDataSet class will cause some query 
results to be lost.
   
   More specifically, after using the "hasNext" function of SessionDataSet, the 
"next" function of ioTDBRpcDataSet will be executed, that is, the next row of 
data is prepared, and the "hasCachedRecord" parameter of ioTDBRpcDataSet is 
marked as true. If the "hasNext" function of SessionDataSet is used twice, the 
"next" function of ioTDBRpcDataSet does not check whether the data has been 
prepared before, but directly prepares the next row of data, causing the last 
prepared row of data to be discarded without being processed.
   
   Therefore, this modification mainly adds a check for the "hasCachedRecord" 
parameter in the next function of ioTDBRpcDataSet. If the previously prepared 
row data has not been consumed by the "next" function of SessionDataSet, then 
executing the "next" function will not perform additional processing and return 
true directly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to