Show the Stage ID and Task ID that corresponds to the max metric
digraph G {
0 [labelType="html" label="<br><b>WriteToDataSourceV2</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (6)\n \nduration: total (min, med, max (stageId: taskId))\n421 ms (1 ms, 2 ms, 24 ms (stage 3.0: task 286))";
2 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>22 ms (0 ms, 0 ms, 22 ms (stage 3.0: task 286))<br>peak memory total (min, med, max (stageId: taskId))<br>114.0 MiB (256.0 KiB, 256.0 KiB, 64.3 MiB (stage 3.0: task 286))<br>number of output rows: 1<br>avg hash probe bucket list iters: 1"];
}
3 [labelType="html" label="<b>StateStoreSave</b><br><br>number of total state rows: 1<br>memory used by state total (min, med, max (stageId: taskId))<br>73.6 KiB (376.0 B, 376.0 B, 568.0 B (stage 3.0: task 286))<br>count of cache hit on states cache in provider: 400<br>number of output rows: 1<br>estimated size of state only on current version total (min, med, max (stageId: taskId))<br>17.4 KiB (88.0 B, 88.0 B, 280.0 B (stage 3.0: task 286))<br>time to commit changes total (min, med, max (stageId: taskId))<br>12.3 s (38 ms, 59 ms, 191 ms (stage 3.0: task 319))<br>time to remove total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 3.0: task 204))<br>number of updated state rows: 1<br>time to update total (min, med, max (stageId: taskId))<br>507 ms (1 ms, 2 ms, 73 ms (stage 3.0: task 286))"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n513 ms (1 ms, 2 ms, 73 ms (stage 3.0: task 286))";
5 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>1 ms (0 ms, 0 ms, 1 ms (stage 3.0: task 286))<br>peak memory total (min, med, max (stageId: taskId))<br>50.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 3.0: task 204))<br>number of output rows: 1"];
}
6 [labelType="html" label="<b>StateStoreRestore</b><br><br>number of output rows: 1"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n2.1 s (4 ms, 8 ms, 373 ms (stage 3.0: task 382))";
8 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>31 ms (0 ms, 0 ms, 31 ms (stage 3.0: task 286))<br>peak memory total (min, med, max (stageId: taskId))<br>50.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 3.0: task 204))<br>number of output rows: 1"];
}
9 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 2<br>shuffle write time total (min, med, max (stageId: taskId))<br>40 ms (19 ms, 21 ms, 21 ms (stage 2.0: task 203))<br>records read: 2<br>local bytes read total (min, med, max (stageId: taskId))<br>80.0 B (0.0 B, 0.0 B, 80.0 B (stage 3.0: task 286))<br>fetch wait time total (min, med, max (stageId: taskId))<br>20 ms (0 ms, 0 ms, 20 ms (stage 3.0: task 286))<br>remote bytes read total (min, med, max (stageId: taskId))<br>80.0 B (0.0 B, 0.0 B, 80.0 B (stage 3.0: task 286))<br>local blocks read: 1<br>remote blocks read: 1<br>data size total (min, med, max (stageId: taskId))<br>80.0 B (40.0 B, 40.0 B, 40.0 B (stage 2.0: task 202))<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>160.0 B (80.0 B, 80.0 B, 80.0 B (stage 2.0: task 202))"];
subgraph cluster10 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n67 ms (30 ms, 37 ms, 37 ms (stage 2.0: task 203))";
11 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>25 ms (10 ms, 15 ms, 15 ms (stage 2.0: task 203))<br>peak memory total (min, med, max (stageId: taskId))<br>512.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 2.0: task 202))<br>number of output rows: 2"];
12 [labelType="html" label="<br><b>Project</b><br><br>"];
}
13 [labelType="html" label="<br><b>EventTimeWatermark</b><br><br>"];
subgraph cluster14 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n37 ms (16 ms, 21 ms, 21 ms (stage 2.0: task 203))";
15 [labelType="html" label="<br><b>Project</b><br><br>"];
16 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 15"];
}
17 [labelType="html" label="<b>Generate</b><br><br>number of output rows: 18"];
subgraph cluster18 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n42 ms (18 ms, 24 ms, 24 ms (stage 2.0: task 203))";
19 [labelType="html" label="<br><b>Project</b><br><br>"];
}
20 [labelType="html" label="<b>MicroBatchScan</b><br><br>number of output rows: 16"];
2->0;
3->2;
5->3;
6->5;
8->6;
9->8;
11->9;
12->11;
13->12;
15->13;
16->15;
17->16;
19->17;
20->19;
}