Add cpu and io indicates to audit log (#531)
This commit is contained in:
@ -309,6 +309,13 @@ Status OlapScanNode::get_next(RuntimeState* state, RowBatch* row_batch, bool* eo
|
||||
return _status;
|
||||
}
|
||||
|
||||
Status OlapScanNode::collect_query_statistics(QueryStatistics* statistics) {
|
||||
RETURN_IF_ERROR(ExecNode::collect_query_statistics(statistics));
|
||||
statistics->add_scan_bytes(_read_compressed_counter->value());
|
||||
statistics->add_scan_rows(rows_returned());
|
||||
return Status::OK;
|
||||
}
|
||||
|
||||
Status OlapScanNode::close(RuntimeState* state) {
|
||||
if (is_closed()) {
|
||||
return Status::OK;
|
||||
|
||||
Reference in New Issue
Block a user