digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
1 [labelType="html" label="<br><b>TakeOrderedAndProject</b><br><br>"];
subgraph cluster2 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 38 ms";
3 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 30 ms<br>peak memory: 32.2 MiB<br>number of output rows: 2,155<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1"];
}
4 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 663.2 KiB<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 17,175<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>226 ms (0 ms, 26 ms, 33 ms (stage 67.0: task 193))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 17,175<br>local bytes read: 632.8 KiB<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 8<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>802.6 KiB (0.0 B, 100.3 KiB, 100.6 KiB (stage 67.0: task 192))<br>local merged bytes read: 0.0 B<br>number of partitions: 200<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>632.8 KiB (0.0 B, 79.1 KiB, 79.3 KiB (stage 67.0: task 188))"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n20.0 s (0 ms, 2.4 s, 3.4 s (stage 67.0: task 188))";
7 [labelType="html" label="<b>HashAggregate</b><br><br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 67.0: task 187))<br>time in aggregation build total (min, med, max (stageId: taskId))<br>19.8 s (0 ms, 2.4 s, 3.4 s (stage 67.0: task 188))<br>peak memory total (min, med, max (stageId: taskId))<br>258.0 MiB (0.0 B, 32.2 MiB, 32.2 MiB (stage 67.0: task 187))<br>number of output rows: 17,175<br>number of sort fallback tasks: 0<br>avg hash probes per key (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 67.0: task 187))"];
}
8 [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 total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 67.0: task 187))<br>size of files read total (min, med, max (stageId: taskId))<br>928.8 MiB (0.0 B, 0.0 B, 928.8 MiB (driver))"];
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
}
9
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=11, orderBy=[count#1172L DESC NULLS LAST], output=[toprettystring(start_station_name)#1177,toprettystring(count)#1178])
HashAggregate(keys=[start_station_name#21], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(start_station_name#21, 200), ENSURE_REQUIREMENTS, [plan_id=890]
HashAggregate(keys=[start_station_name#21], functions=[partial_count(1)])
WholeStageCodegen (1)
FileScan csv [start_station_name#21] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(5 paths)[s3a://rzvde-g9-chernyshev-miron/raw/citibike_data/202507/202507-citibi..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<start_station_name:string>