digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
1 [labelType="html" label="<b>SortAggregate</b><br><br>number of output rows: 1"];
2 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 3<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>1 ms (0 ms, 0 ms, 0 ms (stage 496.0: task 509))<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: 3<br>local bytes read: 182.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: 3<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>120.0 B (40.0 B, 40.0 B, 40.0 B (stage 496.0: task 511))<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 total (min, med, max (stageId: taskId))<br>182.0 B (58.0 B, 58.0 B, 66.0 B (stage 496.0: task 510))"];
3 [labelType="html" label="<b>SortAggregate</b><br><br>number of output rows: 3"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n36 ms (10 ms, 13 ms, 13 ms (stage 496.0: task 509))";
5 [labelType="html" label="<br><b>Project</b><br><br>"];
6 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 9,522<br>number of input batches: 3"];
}
7 [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 496.0: task 509))<br>metadata time: 0 ms<br>size of files read: 9.4 MiB<br>number of output rows: 9,522"];
1->0;
2->1;
3->2;
5->3;
6->5;
7->6;
}
8
AdaptiveSparkPlan isFinalPlan=true
SortAggregate(key=[], functions=[count(1), count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)])
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=6793]
SortAggregate(key=[], functions=[partial_count(1), partial_count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), partial_min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), partial_max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)])
Project [DOCUMENT_ID_3241#43786 AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999]
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [DOCUMENT_ID_3241#43786] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/uet/DOCUMENT_3240], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<DOCUMENT_ID_3241:string>
== Physical Plan ==
AdaptiveSparkPlan (12)
+- == Final Plan ==
SortAggregate (7)
+- ShuffleQueryStage (6), Statistics(sizeInBytes=120.0 B, rowCount=3)
+- Exchange (5)
+- SortAggregate (4)
+- * Project (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
SortAggregate (11)
+- Exchange (10)
+- SortAggregate (9)
+- Project (8)
+- Scan parquet (1)
(1) Scan parquet
Output [1]: [DOCUMENT_ID_3241#43786]
Batched: true
Location: InMemoryFileIndex [file:/data/output/cache/parquet/uet/DOCUMENT_3240]
ReadSchema: struct<DOCUMENT_ID_3241:string>
(2) ColumnarToRow [codegen id : 1]
Input [1]: [DOCUMENT_ID_3241#43786]
(3) Project [codegen id : 1]
Output [1]: [DOCUMENT_ID_3241#43786 AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999]
Input [1]: [DOCUMENT_ID_3241#43786]
(4) SortAggregate
Input [1]: [COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999]
Keys: []
Functions [4]: [partial_count(1), partial_count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), partial_min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), partial_max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)]
Aggregate Attributes [4]: [count#44076L, count#44077L, min#44078, max#44079]
Results [4]: [count#44080L, count#44081L, min#44082, max#44083]
(5) Exchange
Input [4]: [count#44080L, count#44081L, min#44082, max#44083]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=6793]
(6) ShuffleQueryStage
Output [4]: [count#44080L, count#44081L, min#44082, max#44083]
Arguments: 0
(7) SortAggregate
Input [4]: [count#44080L, count#44081L, min#44082, max#44083]
Keys: []
Functions [4]: [count(1), count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)]
Aggregate Attributes [4]: [count(1)#44037L, count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44040L, min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44043, max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44045]
Results [4]: [count(1)#44037L AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81631#44039L, count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44040L AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81632#44042L, min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44043 AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81634#44044, max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44045 AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81635#44046]
(8) Project
Output [1]: [DOCUMENT_ID_3241#43786 AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999]
Input [1]: [DOCUMENT_ID_3241#43786]
(9) SortAggregate
Input [1]: [COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999]
Keys: []
Functions [4]: [partial_count(1), partial_count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), partial_min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), partial_max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)]
Aggregate Attributes [4]: [count#44076L, count#44077L, min#44078, max#44079]
Results [4]: [count#44080L, count#44081L, min#44082, max#44083]
(10) Exchange
Input [4]: [count#44080L, count#44081L, min#44082, max#44083]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=6776]
(11) SortAggregate
Input [4]: [count#44080L, count#44081L, min#44082, max#44083]
Keys: []
Functions [4]: [count(1), count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999), max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)]
Aggregate Attributes [4]: [count(1)#44037L, count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44040L, min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44043, max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44045]
Results [4]: [count(1)#44037L AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81631#44039L, count(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44040L AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81632#44042L, min(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44043 AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81634#44044, max(COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E8163#43999)#44045 AS COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81635#44046]
(12) AdaptiveSparkPlan
Output [4]: [COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81631#44039L, COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81632#44042L, COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81634#44044, COL_B8C4154A_9C1F_4379_B2D0_37CB2E2E81635#44046]
Arguments: isFinalPlan=true