Skip to content

Commit

Permalink
[log](statistics)Add result row count log for statistics internal que…
Browse files Browse the repository at this point in the history
…ry. (#39556) (#39609)

backport: #39556
  • Loading branch information
Jibing-Li authored Aug 20, 2024
1 parent a5daa3e commit 7c3c5c6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3135,9 +3135,18 @@ public List<ResultRow> executeInternalQuery() {
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) {
Expand Down

0 comments on commit 7c3c5c6

Please sign in to comment.