Add cpu and io indicates to audit log (#513)
Record query consumption into fe audit log. Its basic mode of work is as follows, one of instance of parent plan is responsible for accumulating sub plan's consumption and send to it's parent, BE coordinator will get total consumption because it's a single instance.
This commit is contained in:
@ -333,6 +333,8 @@ Status PlanFragmentExecutor::open_internal() {
|
||||
// audit the sinks to check that this is ok, or change that behaviour.
|
||||
{
|
||||
SCOPED_TIMER(profile()->total_time_counter());
|
||||
ExecNodeConsumptionProvider::Consumption consumption = runtime_state()->get_consumption();
|
||||
_sink->set_query_consumption(consumption);
|
||||
Status status = _sink->close(runtime_state(), _status);
|
||||
RETURN_IF_ERROR(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user