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: 6 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: 64.2 MiB<br>number of output rows: 19<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: 676.0 B<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 19<br>local merged chunks fetched: 0<br>shuffle write time: 2 ms<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: 19<br>local bytes read: 651.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: 1<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 456.0 B<br>local merged bytes read: 0.0 B<br>number of partitions: 10<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 651.0 B"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n166 ms (8 ms, 33 ms, 115 ms (stage 2187.0: task 1914))";
7 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>37 ms (3 ms, 5 ms, 26 ms (stage 2187.0: task 1915))<br>peak memory total (min, med, max (stageId: taskId))<br>1024.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 2187.0: task 1914))<br>number of output rows: 19<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
8 [labelType="html" label="<br><b>Project</b><br><br>"];
9 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 4,446<br>number of input batches: 2"];
}
10 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time total (min, med, max (stageId: taskId))<br>27 ms (2 ms, 4 ms, 18 ms (stage 2187.0: task 1915))<br>metadata time: 0 ms<br>size of files read: 12.7 MiB<br>number of output rows: 4,446"];
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
9->8;
10->9;
}
11
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=500000, orderBy=[COL_9E5D00FA_8AAC_432E_B754_81974D7BDDCF#789467L DESC NULLS LAST], output=[COL_FF405243_50AE_4FFD_8561_D54ABB1BBC9B#789461,COL_9E5D00FA_8AAC_432E_B754_81974D7BDDCF#789467L])
HashAggregate(keys=[COL_90B1136F_D39E_496D_A198_AD89C6BAFA18#789450], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_90B1136F_D39E_496D_A198_AD89C6BAFA18#789450, 10), ENSURE_REQUIREMENTS, [plan_id=41199]
HashAggregate(keys=[COL_90B1136F_D39E_496D_A198_AD89C6BAFA18#789450], functions=[partial_count(1)])
Project [COL_B82F2D0F_26B9_4A1F_BDCD_C6E1A561B718#789075 AS COL_90B1136F_D39E_496D_A198_AD89C6BAFA18#789450]
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_B82F2D0F_26B9_4A1F_BDCD_C6E1A561B718#789075] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/datablock/DATABLOCK_INFOR_326796], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<COL_B82F2D0F_26B9_4A1F_BDCD_C6E1A561B718:int>