imay commented on a change in pull request #531: Add cpu and io indicates to 
audit log
URL: https://github.com/apache/incubator-doris/pull/531#discussion_r248247101
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/qe/StmtExecutor.java
 ##########
 @@ -537,20 +539,25 @@ private void handleQueryStmt() throws Exception {
         // so We need to send fields after first batch arrived
 
         // send result
-        TResultBatch batch;
+        RowBatch batch;
         MysqlChannel channel = context.getMysqlChannel();
         boolean isSendFields = false;
-        while ((batch = coord.getNext()) != null) {
+      
+        while ((batch = coord.getNext()) != null && !batch.isEos()) {
 
 Review comment:
   while (true) {
    getNext(batch)
   if (batch.batch != null) 
   if (batch.stats != null)
   if (batch.batch.eos) {
   break;
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org
For additional commands, e-mail: dev-h...@doris.apache.org

Reply via email to