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))\n454 ms (0 ms, 2 ms, 10 ms (stage 7.0: task 659))";
2 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>4 ms (0 ms, 0 ms, 1 ms (stage 7.0: task 615))<br>peak memory total (min, med, max (stageId: taskId))<br>370.0 MiB (256.0 KiB, 256.0 KiB, 64.3 MiB (stage 7.0: task 615))<br>number of output rows: 5<br>avg hash probe bucket list iters (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 7.0: task 615))"];
}
3 [labelType="html" label="<b>StateStoreSave</b><br><br>number of total state rows: 5<br>memory used by state total (min, med, max (stageId: taskId))<br>79.3 KiB (400.0 B, 400.0 B, 720.0 B (stage 7.0: task 723))<br>count of cache hit on states cache in provider: 1,200<br>number of output rows: 5<br>estimated size of state only on current version total (min, med, max (stageId: taskId))<br>18.2 KiB (88.0 B, 88.0 B, 304.0 B (stage 7.0: task 723))<br>time to commit changes total (min, med, max (stageId: taskId))<br>15.2 s (41 ms, 76 ms, 147 ms (stage 7.0: task 636))<br>time to remove total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 7.0: task 608))<br>number of updated state rows: 2<br>time to update total (min, med, max (stageId: taskId))<br>472 ms (1 ms, 2 ms, 25 ms (stage 7.0: task 723))"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n478 ms (1 ms, 2 ms, 25 ms (stage 7.0: task 723))";
5 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 7.0: task 608))<br>peak memory total (min, med, max (stageId: taskId))<br>50.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 7.0: task 608))<br>number of output rows: 2"];
}
6 [labelType="html" label="<b>StateStoreRestore</b><br><br>number of output rows: 2"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n1.9 s (3 ms, 9 ms, 47 ms (stage 7.0: task 669))";
8 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>6 ms (0 ms, 0 ms, 4 ms (stage 7.0: task 723))<br>peak memory total (min, med, max (stageId: taskId))<br>50.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 7.0: task 608))<br>number of output rows: 2"];
}
9 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 4<br>shuffle write time total (min, med, max (stageId: taskId))<br>10 ms (5 ms, 5 ms, 5 ms (stage 6.0: task 606))<br>records read: 4<br>local bytes read total (min, med, max (stageId: taskId))<br>198.0 B (0.0 B, 0.0 B, 103.0 B (stage 7.0: task 723))<br>fetch wait time total (min, med, max (stageId: taskId))<br>3 ms (0 ms, 0 ms, 3 ms (stage 7.0: task 723))<br>remote bytes read total (min, med, max (stageId: taskId))<br>198.0 B (0.0 B, 0.0 B, 103.0 B (stage 7.0: task 723))<br>local blocks read: 2<br>remote blocks read: 2<br>data size total (min, med, max (stageId: taskId))<br>240.0 B (120.0 B, 120.0 B, 120.0 B (stage 6.0: task 606))<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>396.0 B (198.0 B, 198.0 B, 198.0 B (stage 6.0: task 606))"];
subgraph cluster10 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n20 ms (10 ms, 10 ms, 10 ms (stage 6.0: task 606))";
11 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>2 ms (1 ms, 1 ms, 1 ms (stage 6.0: task 606))<br>peak memory total (min, med, max (stageId: taskId))<br>512.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 6.0: task 606))<br>number of output rows: 4"];
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))\n12 ms (6 ms, 6 ms, 6 ms (stage 6.0: task 606))";
15 [labelType="html" label="<br><b>Project</b><br><br>"];
}
16 [labelType="html" label="<b>Generate</b><br><br>number of output rows: 12"];
subgraph cluster17 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n17 ms (8 ms, 9 ms, 9 ms (stage 6.0: task 607))";
18 [labelType="html" label="<br><b>Project</b><br><br>"];
}
19 [labelType="html" label="<b>MicroBatchScan</b><br><br>number of output rows: 12"];
2->0;
3->2;
5->3;
6->5;
8->6;
9->8;
11->9;
12->11;
13->12;
15->13;
16->15;
18->16;
19->18;
}