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: 4 ms";
3 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 0 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: 1264.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>36 ms (0 ms, 4 ms, 5 ms (stage 85.0: task 242))<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: 1166.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>512.0 B (0.0 B, 64.0 B, 64.0 B (stage 85.0: task 241))<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>1166.0 B (0.0 B, 146.0 B, 146.0 B (stage 85.0: task 241))"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n20.6 s (0 ms, 2.5 s, 4.5 s (stage 85.0: task 245))";
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 85.0: task 241))<br>time in aggregation build total (min, med, max (stageId: taskId))<br>20.6 s (0 ms, 2.5 s, 4.5 s (stage 85.0: task 245))<br>peak memory total (min, med, max (stageId: taskId))<br>2.0 MiB (0.0 B, 256.0 KiB, 256.0 KiB (stage 85.0: task 241))<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 85.0: task 241))<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=4, orderBy=[count#1358L DESC NULLS LAST], output=[toprettystring(member_casual)#1363,toprettystring(count)#1364])
HashAggregate(keys=[member_casual#29], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(member_casual#29, 200), ENSURE_REQUIREMENTS, [plan_id=1160]
HashAggregate(keys=[member_casual#29], functions=[partial_count(1)])
WholeStageCodegen (1)
FileScan csv [member_casual#29] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(5 paths)[s3a://rzvde-g9-chernyshev-miron/raw/citibike_data/202507/202507-citibi..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<member_casual:string>