Show the Stage ID and Task ID that corresponds to the max metric
digraph G {
0 [labelType="html" label="<br><b>CollectLimit</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n31.0 s (1.7 s, 4.3 s, 4.5 s (stage 92.0: task 259))";
2 [labelType="html" label="<br><b>Project</b><br><br>"];
3 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 0"];
}
4 [labelType="html" label="<b>Scan csv </b><br><br>number of output rows: 4,988,053<br>number of files read: 5<br>metadata time: 0 ms<br>size of files read: 928.8 MiB"];
2->0;
3->2;
4->3;
}
5
CollectLimit 21
Project [toprettystring(ride_id#17, Some(Etc/UTC)) AS toprettystring(ride_id)#1409, toprettystring(rideable_type#18, Some(Etc/UTC)) AS toprettystring(rideable_type)#1410, toprettystring(started_at#19, Some(Etc/UTC)) AS toprettystring(started_at)#1411, toprettystring(ended_at#20, Some(Etc/UTC)) AS toprettystring(ended_at)#1412, toprettystring(start_station_name#21, Some(Etc/UTC)) AS toprettystring(start_station_name)#1413, toprettystring(cast(start_station_id#22 as float), Some(Etc/UTC)) AS toprettystring(start_station_id)#1414, toprettystring(end_station_name#23, Some(Etc/UTC)) AS toprettystring(end_station_name)#1415, toprettystring(cast(end_station_id#24 as float), Some(Etc/UTC)) AS toprettystring(end_station_id)#1416, toprettystring(start_lat#25, Some(Etc/UTC)) AS toprettystring(start_lat)#1417, toprettystring(start_lng#26, Some(Etc/UTC)) AS toprettystring(start_lng)#1418, toprettystring(end_lat#27, Some(Etc/UTC)) AS toprettystring(end_lat)#1419, toprettystring(end_lng#28, Some(Etc/UTC)) AS toprettystring(end_lng)#1420, toprettystring(member_casual#29, Some(Etc/UTC)) AS toprettystring(member_casual)#1421, toprettystring((ended_at#20 - started_at#19), Some(Etc/UTC)) AS toprettystring(duration)#1422, toprettystring((unix_timestamp(ended_at#20, yyyy-MM-dd HH:mm:ss, Some(Etc/UTC), false) - unix_timestamp(started_at#19, yyyy-MM-dd HH:mm:ss, Some(Etc/UTC), false)), Some(Etc/UTC)) AS toprettystring(duration_sec)#1423]
Filter ((isnotnull(started_at#19) AND isnotnull(ended_at#20)) AND (started_at#19 > ended_at#20))