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: 58 ms";
3 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 3 ms<br>peak memory: 32.2 MiB<br>number of output rows: 2<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: 1408.0 B<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 16<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>33 ms (0 ms, 3 ms, 5 ms (stage 64.0: task 180))<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: 16<br>local bytes read: 1312.0 B<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>640.0 B (0.0 B, 80.0 B, 80.0 B (stage 64.0: task 178))<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>1312.0 B (0.0 B, 164.0 B, 164.0 B (stage 64.0: task 178))"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n29.0 s (0 ms, 2.7 s, 10.5 s (stage 64.0: task 181))";
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 64.0: task 178))<br>time in aggregation build total (min, med, max (stageId: taskId))<br>28.8 s (0 ms, 2.7 s, 10.5 s (stage 64.0: task 181))<br>peak memory total (min, med, max (stageId: taskId))<br>2.0 MiB (0.0 B, 256.0 KiB, 256.0 KiB (stage 64.0: task 178))<br>number of output rows: 16<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
}
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 64.0: task 178))<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#1141L DESC NULLS LAST], output=[toprettystring(rideable_type)#1146,toprettystring(count)#1147])
HashAggregate(keys=[rideable_type#18], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(rideable_type#18, 200), ENSURE_REQUIREMENTS, [plan_id=845]
HashAggregate(keys=[rideable_type#18], functions=[partial_count(1)])
WholeStageCodegen (1)
FileScan csv [rideable_type#18] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(5 paths)[s3a://rzvde-g9-chernyshev-miron/raw/citibike_data/202507/202507-citibi..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<rideable_type:string>