[log](statistics)Add result row count log for statistics internal query. (#39556) (#39609)

backport: https://github.com/apache/doris/pull/39556
This commit is contained in:
Jibing-Li
2024-08-20 23:18:48 +08:00
committed by GitHub
parent a5daa3edc8
commit 7c3c5c67fc

View File

@ -3135,9 +3135,18 @@ public class StmtExecutor {
while (true) {
batch = coord.getNext();
if (batch == null || batch.isEos()) {
LOG.info("Result rows for query {} is {}", DebugUtil.printId(queryId), resultRows.size());
return resultRows;
} else {
if (LOG.isDebugEnabled() && batch.getBatch() != null && batch.getBatch().rows != null) {
LOG.debug("Batch size for query {} is {}",
DebugUtil.printId(queryId), batch.getBatch().rows.size());
}
resultRows.addAll(convertResultBatchToResultRows(batch.getBatch()));
if (LOG.isDebugEnabled()) {
LOG.debug("Result size for query {} is currently {}",
DebugUtil.printId(queryId), resultRows.size());
}
}
}
} catch (Exception e) {