digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: 21 ms";
2 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build: 21 ms<br>number of output rows: 1"];
}
3 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 1<br>local merged chunks fetched: 0<br>shuffle write time: 0 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: 1<br>local bytes read: 59.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: 16.0 B<br>local merged bytes read: 0.0 B<br>number of partitions: 1<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 59.0 B"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 8 ms";
5 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 8 ms<br>peak memory: 0.0 B<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
6 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 3 ms<br>peak memory: 64.2 MiB<br>number of output rows: 694<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1"];
}
7 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 55.7 KiB<br>number of coalesced partitions: 1"];
8 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 694<br>local merged chunks fetched: 0<br>shuffle write time: 1 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: 694<br>local bytes read: 52.3 KiB<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: 69.2 KiB<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: 52.3 KiB"];
subgraph cluster9 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n138 ms (33 ms, 46 ms, 59 ms (stage 1145.0: task 1106))";
10 [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>19 ms (2 ms, 3 ms, 14 ms (stage 1145.0: task 1105))<br>peak memory total (min, med, max (stageId: taskId))<br>64.7 MiB (256.0 KiB, 256.0 KiB, 64.2 MiB (stage 1145.0: task 1105))<br>number of output rows: 694<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1"];
11 [labelType="html" label="<br><b>Project</b><br><br>"];
12 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 9,522<br>number of input batches: 3"];
}
13 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time total (min, med, max (stageId: taskId))<br>9 ms (2 ms, 3 ms, 4 ms (stage 1145.0: task 1105))<br>metadata time: 0 ms<br>size of files read: 9.9 MiB<br>number of output rows: 9,522"];
2->0;
3->2;
5->3;
6->5;
7->6;
8->7;
10->8;
11->10;
12->11;
13->12;
}
14
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[], functions=[count(1)])
WholeStageCodegen (3)
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=17367]
HashAggregate(keys=[], functions=[partial_count(1)])
HashAggregate(keys=[COL_BEF40181_057A_4389_AA5E_239A7171DA5D#109908, COL_D81F1F01_A875_402B_B95E_0272847DDDF7#109909], functions=[])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_BEF40181_057A_4389_AA5E_239A7171DA5D#109908, COL_D81F1F01_A875_402B_B95E_0272847DDDF7#109909, 10), ENSURE_REQUIREMENTS, [plan_id=17327]
HashAggregate(keys=[COL_BEF40181_057A_4389_AA5E_239A7171DA5D#109908, COL_D81F1F01_A875_402B_B95E_0272847DDDF7#109909], functions=[])
Project [PATIENT_ID_3243#109704 AS COL_BEF40181_057A_4389_AA5E_239A7171DA5D#109908, VISIT_ID_3244#109708 AS COL_D81F1F01_A875_402B_B95E_0272847DDDF7#109909]
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [PATIENT_ID_3243#109704,VISIT_ID_3244#109708] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/uet/DOCUMENT_3240], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<PATIENT_ID_3243:string,VISIT_ID_3244:string>