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))\n60 ms (0 ms, 0 ms, 3 ms (stage 19.0: task 1825))";
2 [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 19.0: task 1825))<br>peak memory total (min, med, max (stageId: taskId))<br>268.5 MiB (0.0 B, 0.0 B, 64.3 MiB (stage 19.0: task 1825))<br>number of output rows: 4<br>avg hash probe bucket list iters (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 19.0: task 1825))"];
}
3 [labelType="html" label="<b>StateStoreSave</b><br><br>number of total state rows: 4<br>memory used by state total (min, med, max (stageId: taskId))<br>20.5 KiB (0.0 B, 0.0 B, 728.0 B (stage 19.0: task 1825))<br>count of cache hit on states cache in provider: 900<br>number of output rows: 4<br>estimated size of state only on current version total (min, med, max (stageId: taskId))<br>5.1 KiB (0.0 B, 0.0 B, 312.0 B (stage 19.0: task 1825))<br>time to commit changes total (min, med, max (stageId: taskId))<br>3.9 s (0 ms, 0 ms, 106 ms (stage 19.0: task 1852))<br>time to remove total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 19.0: task 1820))<br>number of updated state rows: 1<br>time to update total (min, med, max (stageId: taskId))<br>92 ms (0 ms, 0 ms, 23 ms (stage 19.0: task 1825))"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n92 ms (0 ms, 0 ms, 23 ms (stage 19.0: task 1825))";
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 19.0: task 1820))<br>peak memory total (min, med, max (stageId: taskId))<br>12.5 MiB (0.0 B, 0.0 B, 256.0 KiB (stage 19.0: task 1820))<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))\n310 ms (0 ms, 0 ms, 10 ms (stage 19.0: task 1825))";
8 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>7 ms (0 ms, 0 ms, 7 ms (stage 19.0: task 1825))<br>peak memory total (min, med, max (stageId: taskId))<br>12.5 MiB (0.0 B, 0.0 B, 256.0 KiB (stage 19.0: task 1820))<br>number of output rows: 1"];
}
9 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 4<br>shuffle write time total (min, med, max (stageId: taskId))<br>11 ms (5 ms, 6 ms, 6 ms (stage 18.0: task 1818))<br>records read: 2<br>local bytes read total (min, med, max (stageId: taskId))<br>113.0 B (0.0 B, 0.0 B, 113.0 B (stage 19.0: task 1825))<br>fetch wait time total (min, med, max (stageId: taskId))<br>6 ms (0 ms, 0 ms, 6 ms (stage 19.0: task 1825))<br>remote bytes read total (min, med, max (stageId: taskId))<br>113.0 B (0.0 B, 0.0 B, 113.0 B (stage 19.0: task 1825))<br>local blocks read: 1<br>remote blocks read: 1<br>data size total (min, med, max (stageId: taskId))<br>288.0 B (144.0 B, 144.0 B, 144.0 B (stage 18.0: task 1818))<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>452.0 B (226.0 B, 226.0 B, 226.0 B (stage 18.0: task 1818))"];
subgraph cluster10 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n19 ms (8 ms, 11 ms, 11 ms (stage 18.0: task 1818))";
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 18.0: task 1818))<br>peak memory total (min, med, max (stageId: taskId))<br>512.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 18.0: task 1818))<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))\n10 ms (4 ms, 6 ms, 6 ms (stage 18.0: task 1818))";
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))\n12 ms (5 ms, 7 ms, 7 ms (stage 18.0: task 1818))";
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;
}