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 (4)\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: 16.3 MiB<br>number of output rows: 10<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: 703.0 B<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 10<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: 10<br>local bytes read: 690.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: 392.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: 690.0 B"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: 10 ms";
7 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 4 ms<br>peak memory: 256.0 KiB<br>number of output rows: 10<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
}
8 [labelType="html" label="<b>SortAggregate</b><br><br>number of output rows: 700"];
subgraph cluster9 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 63 ms";
10 [labelType="html" label="<b>Sort</b><br><br>sort time: 0 ms<br>peak memory: 16.1 MiB<br>spill size: 0.0 B"];
}
11 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 12.4 KiB<br>number of coalesced partitions: 1"];
12 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 850<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>14 ms (2 ms, 2 ms, 7 ms (stage 5833.0: task 5397))<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: 850<br>local bytes read: 11.7 KiB<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 4<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>45.2 KiB (6.9 KiB, 14.4 KiB, 16.1 KiB (stage 5833.0: task 5398))<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 total (min, med, max (stageId: taskId))<br>11.7 KiB (2.2 KiB, 3.4 KiB, 3.7 KiB (stage 5833.0: task 5398))"];
13 [labelType="html" label="<b>SortAggregate</b><br><br>number of output rows: 850"];
subgraph cluster14 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n406 ms (97 ms, 102 ms, 106 ms (stage 5833.0: task 5398))";
15 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>1 ms (0 ms, 0 ms, 1 ms (stage 5833.0: task 5397))<br>peak memory total (min, med, max (stageId: taskId))<br>64.3 MiB (16.1 MiB, 16.1 MiB, 16.1 MiB (stage 5833.0: task 5399))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 5833.0: task 5399))"];
16 [labelType="html" label="<br><b>Project</b><br><br>"];
17 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 5,316"];
18 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 7,020<br>number of input batches: 4"];
}
19 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 4<br>scan time total (min, med, max (stageId: taskId))<br>46 ms (8 ms, 15 ms, 15 ms (stage 5833.0: task 5399))<br>metadata time: 0 ms<br>size of files read: 1959.2 KiB<br>number of output rows: 7,020"];
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
10->8;
11->10;
12->11;
13->12;
15->13;
16->15;
17->16;
18->17;
19->18;
}
20
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=500000, orderBy=[COL_294BCB96_1C01_4914_A440_409E26236369#859316 ASC NULLS FIRST], output=[COL_294BCB96_1C01_4914_A440_409E26236369#859316,COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L])
HashAggregate(keys=[COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027], functions=[count(1)])
WholeStageCodegen (4)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, 10), ENSURE_REQUIREMENTS, [plan_id=114958]
HashAggregate(keys=[COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027], functions=[partial_count(1)])
WholeStageCodegen (3)
SortAggregate(key=[COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035], functions=[last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056, false)])
Sort [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035 ASC NULLS FIRST], false, 0
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, 10), ENSURE_REQUIREMENTS, [plan_id=114852]
SortAggregate(key=[COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035], functions=[partial_last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056, false)])
Sort [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035 ASC NULLS FIRST], false, 0
Project [COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236 AS COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273 AS COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056]
Filter (COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106 <=> 1)
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106,COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236,COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273] Batched: true, DataFilters: [(COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106 <=> 1)], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/datablock/RHA_2021_56618], PartitionFilters: [], PushedFilters: [EqualNullSafe(COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB,1)], ReadSchema: struct<COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB:string,COL_5568E832_697C_49B2_9D61_94FBF22B47A2:s...
== Physical Plan ==
AdaptiveSparkPlan (29)
+- == Final Plan ==
TakeOrderedAndProject (17)
+- * HashAggregate (16)
+- AQEShuffleRead (15)
+- ShuffleQueryStage (14), Statistics(sizeInBytes=392.0 B, rowCount=10)
+- Exchange (13)
+- * HashAggregate (12)
+- SortAggregate (11)
+- * Sort (10)
+- AQEShuffleRead (9)
+- ShuffleQueryStage (8), Statistics(sizeInBytes=45.2 KiB, rowCount=850)
+- Exchange (7)
+- SortAggregate (6)
+- * Sort (5)
+- * Project (4)
+- * Filter (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
TakeOrderedAndProject (28)
+- HashAggregate (27)
+- Exchange (26)
+- HashAggregate (25)
+- SortAggregate (24)
+- Sort (23)
+- Exchange (22)
+- SortAggregate (21)
+- Sort (20)
+- Project (19)
+- Filter (18)
+- Scan parquet (1)
(1) Scan parquet
Output [3]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106, COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273]
Batched: true
Location: InMemoryFileIndex [file:/data/output/cache/parquet/datablock/RHA_2021_56618]
PushedFilters: [EqualNullSafe(COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB,1)]
ReadSchema: struct<COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB:string,COL_5568E832_697C_49B2_9D61_94FBF22B47A2:string,COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66:string>
(2) ColumnarToRow [codegen id : 1]
Input [3]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106, COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273]
(3) Filter [codegen id : 1]
Input [3]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106, COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273]
Condition : (COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106 <=> 1)
(4) Project [codegen id : 1]
Output [2]: [COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236 AS COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273 AS COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056]
Input [3]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106, COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273]
(5) Sort [codegen id : 1]
Input [2]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056]
Arguments: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035 ASC NULLS FIRST], false, 0
(6) SortAggregate
Input [2]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056]
Keys [1]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035]
Functions [1]: [partial_last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056, false)]
Aggregate Attributes [2]: [last#859420, valueSet#859421]
Results [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
(7) Exchange
Input [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Arguments: hashpartitioning(COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, 10), ENSURE_REQUIREMENTS, [plan_id=114852]
(8) ShuffleQueryStage
Output [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Arguments: 0
(9) AQEShuffleRead
Input [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Arguments: coalesced
(10) Sort [codegen id : 2]
Input [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Arguments: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035 ASC NULLS FIRST], false, 0
(11) SortAggregate
Input [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Keys [1]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035]
Functions [1]: [last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056, false)]
Aggregate Attributes [1]: [last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056)()#859026]
Results [1]: [last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056)()#859026 AS COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
(12) HashAggregate [codegen id : 3]
Input [1]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
Keys [1]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#859418L]
Results [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
(13) Exchange
Input [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
Arguments: hashpartitioning(COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, 10), ENSURE_REQUIREMENTS, [plan_id=114958]
(14) ShuffleQueryStage
Output [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
Arguments: 1
(15) AQEShuffleRead
Input [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
Arguments: coalesced
(16) HashAggregate [codegen id : 4]
Input [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
Keys [1]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#859319L]
Results [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027 AS COL_294BCB96_1C01_4914_A440_409E26236369#859316, count(1)#859319L AS COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L]
(17) TakeOrderedAndProject
Input [2]: [COL_294BCB96_1C01_4914_A440_409E26236369#859316, COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L]
Arguments: 500000, [COL_294BCB96_1C01_4914_A440_409E26236369#859316 ASC NULLS FIRST], [COL_294BCB96_1C01_4914_A440_409E26236369#859316, COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L]
(18) Filter
Input [3]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106, COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273]
Condition : (COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106 <=> 1)
(19) Project
Output [2]: [COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236 AS COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273 AS COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056]
Input [3]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#853106, COL_5568E832_697C_49B2_9D61_94FBF22B47A2#853236, COL_3EC1F10A_153D_40FC_A7CD_E049BE2B4A66#853273]
(20) Sort
Input [2]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056]
Arguments: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035 ASC NULLS FIRST], false, 0
(21) SortAggregate
Input [2]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056]
Keys [1]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035]
Functions [1]: [partial_last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056, false)]
Aggregate Attributes [2]: [last#859420, valueSet#859421]
Results [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
(22) Exchange
Input [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Arguments: hashpartitioning(COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, 10), ENSURE_REQUIREMENTS, [plan_id=114812]
(23) Sort
Input [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Arguments: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035 ASC NULLS FIRST], false, 0
(24) SortAggregate
Input [3]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035, last#859422, valueSet#859423]
Keys [1]: [COL_33B3F902_BE3B_40DB_BC77_88076624B8FE#857035]
Functions [1]: [last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056, false)]
Aggregate Attributes [1]: [last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056)()#859026]
Results [1]: [last(COL_61BBAD15_9872_48F5_8953_FA6EEA4DB144#857056)()#859026 AS COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
(25) HashAggregate
Input [1]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
Keys [1]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#859418L]
Results [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
(26) Exchange
Input [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
Arguments: hashpartitioning(COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, 10), ENSURE_REQUIREMENTS, [plan_id=114817]
(27) HashAggregate
Input [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027, count#859419L]
Keys [1]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#859319L]
Results [2]: [COL_E58D0435_39EE_47A6_9237_CB929C73C4C6#859027 AS COL_294BCB96_1C01_4914_A440_409E26236369#859316, count(1)#859319L AS COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L]
(28) TakeOrderedAndProject
Input [2]: [COL_294BCB96_1C01_4914_A440_409E26236369#859316, COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L]
Arguments: 500000, [COL_294BCB96_1C01_4914_A440_409E26236369#859316 ASC NULLS FIRST], [COL_294BCB96_1C01_4914_A440_409E26236369#859316, COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L]
(29) AdaptiveSparkPlan
Output [2]: [COL_294BCB96_1C01_4914_A440_409E26236369#859316, COL_C12386B4_2B90_4C4C_BF8E_4BEBF56F6875#859321L]
Arguments: isFinalPlan=true