I have profiled one sql and the result is as below:
HINT: Select * from v_monitor.execution_engine_profiles where transaction_id=1193453901253184496 and statement_id=1;
vsql:new.sql:1789: NOTICE 3557: Initiator memory for query: [on pool merge: 7808279 KB, minimum: 7721225 KB]
vsql:new.sql:1789: NOTICE 5077: Total memory required by query: [20608676 KB]
OUTPUT
732199007
(1 row)
Time: First fetch (1 row): 1072106.511 ms. All rows formatted: 1072106.570 ms
Here we can see the total time is 1000 seconds. But from the profile table, the sum of execution time or clock time is less than 600 seconds, why could this happen? (adhoc.profiel_daniel_merge_allen_sql_part1 is the table stored data in v_monitor.execution_engine_profiles this this specific query)
select path_id,operator_name,count(distinct operator_id),
max(case when counter_name='execution time (us)' then (counter_value/1000/1000)::decimal(10,2) else 0 end) execution_second,
max(case when counter_name='clock time (us)' then (counter_value/1000/1000)::decimal(10,2) else 0 end) clock_second
from adhoc.profiel_daniel_merge_allen_sql_part1 where node_name='v_node0256' group by path_id, operator_name order by 1 asc
path_id operator_name count execution_second clock_second
-1 GroupByNothing 1 0.00 0.00
-1 Root 1 0.00 0.00
15 ExprEval 1 0.00 0.00
17 ExprEval 2 0.00 0.00
16 StorageMerge 1 0.01 0.00
16 GroupByPipe 3 0.02 0.02
-1 Copy 448 0.09 0.18
17 Scan 2 0.15 5.05
-1 NewEENode 1 0.73 0.74
2 ExprEval 1 0.91 0.92
19 StorageMerge 1 0.98 0.00
-1 Recv 126 0.99 0.00
-1 Send 63 1.04 0.00
7 ExprEval 1 1.07 1.07
-1 Union 2 1.55 1.62
13 NetworkSend 2 2.33 0.00
9 ExprEval 16 2.81 2.85
12 ExprEval 16 2.89 2.94
13 ExprEval 1 3.12 3.16
19 GroupByPipe 17 3.46 3.47
20 ExprEval 16 3.63 3.66
18 ExprEval 1 4.09 4.10
13 NetworkRecv 2 4.13 0.00
14 Join 1 7.88 8.09
-1 ValExpr 4 7.96 8.05
5 NetworkRecv 2 9.07 0.00
3 ExprEval 1 9.37 9.43
9 Scan 16 10.16 57.66
10 ExprEval 1 10.78 10.86
5 NetworkSend 2 11.57 0.00
11 StorageMerge 1 11.93 0.00
8 GroupByPipe 17 13.04 13.10
11 GroupByPipe 17 13.83 13.90
-1 Router 2 17.72 17.93
12 Scan 16 18.27 66.53
20 Scan 16 18.97 42.79
5 ExprEval 1 21.94 22.20
8 StorageMerge 1 32.33 0.00
6 Join 1 42.49 43.25
1 ExprEval 1 46.68 46.94
4 Join 1 83.22 90.61
-1 DataTarget 2 115.15 52.71

