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: 2 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: 26<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: 6.6 KiB<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 126<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>7 ms (1 ms, 1 ms, 1 ms (stage 49380.0: task 36997))<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: 126<br>local bytes read: 6.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: 5<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>6.3 KiB (1272.0 B, 1272.0 B, 1328.0 B (stage 49380.0: task 36993))<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>6.3 KiB (1283.0 B, 1289.0 B, 1302.0 B (stage 49380.0: task 36993))"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n271 ms (48 ms, 50 ms, 62 ms (stage 49380.0: task 36995))";
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>254 ms (45 ms, 47 ms, 58 ms (stage 49380.0: task 36997))<br>peak memory total (min, med, max (stageId: taskId))<br>1280.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 49380.0: task 36994))<br>number of output rows: 126<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: 98,495<br>number of input batches: 25"];
}
10 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 5<br>scan time total (min, med, max (stageId: taskId))<br>9 ms (1 ms, 2 ms, 3 ms (stage 49380.0: task 36996))<br>metadata time: 0 ms<br>size of files read: 4.0 MiB<br>number of output rows: 98,495"];
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_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801 ASC NULLS FIRST,COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802 ASC NULLS FIRST], output=[COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801,COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L,COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802])
HashAggregate(keys=[COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, 10), ENSURE_REQUIREMENTS, [plan_id=2072727]
HashAggregate(keys=[COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724], functions=[partial_count(1)])
Project [COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527 AS COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, str_join(array(str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, 5, 4), str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, 3, 2)), -) AS COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775]
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519,COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/datablock/06_COMPILATION__241251], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255:string,COL_493B3625_15CC_4C3E_B552_CFFC349A58D4:s...
== Physical Plan ==
AdaptiveSparkPlan (15)
+- == Final Plan ==
TakeOrderedAndProject (9)
+- * HashAggregate (8)
+- AQEShuffleRead (7)
+- ShuffleQueryStage (6), Statistics(sizeInBytes=6.3 KiB, rowCount=126)
+- Exchange (5)
+- * HashAggregate (4)
+- * Project (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
TakeOrderedAndProject (14)
+- HashAggregate (13)
+- Exchange (12)
+- HashAggregate (11)
+- Project (10)
+- Scan parquet (1)
(1) Scan parquet
Output [2]: [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527]
Batched: true
Location: InMemoryFileIndex [file:/data/output/cache/parquet/datablock/06_COMPILATION__241251]
ReadSchema: struct<COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255:string,COL_493B3625_15CC_4C3E_B552_CFFC349A58D4:string>
(2) ColumnarToRow [codegen id : 1]
Input [2]: [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527]
(3) Project [codegen id : 1]
Output [2]: [COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527 AS COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, str_join(array(str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, 5, 4), str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, 3, 2)), -) AS COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775]
Input [2]: [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527]
(4) HashAggregate [codegen id : 1]
Input [2]: [COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#4817863L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
(5) Exchange
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
Arguments: hashpartitioning(COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, 10), ENSURE_REQUIREMENTS, [plan_id=2072727]
(6) ShuffleQueryStage
Output [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
Arguments: 0
(7) AQEShuffleRead
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
Arguments: coalesced
(8) HashAggregate [codegen id : 2]
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#4817822L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775 AS COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801, count(1)#4817822L AS COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724 AS COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802]
(9) TakeOrderedAndProject
Input [3]: [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802]
Arguments: 500000, [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801 ASC NULLS FIRST, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802 ASC NULLS FIRST], [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802]
(10) Project
Output [2]: [COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527 AS COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, str_join(array(str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, 5, 4), str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, 3, 2)), -) AS COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775]
Input [2]: [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4817519, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4817527]
(11) HashAggregate
Input [2]: [COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#4817863L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
(12) Exchange
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
Arguments: hashpartitioning(COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, 10), ENSURE_REQUIREMENTS, [plan_id=2072708]
(13) HashAggregate
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724, count#4817864L]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#4817822L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4817775 AS COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801, count(1)#4817822L AS COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4817724 AS COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802]
(14) TakeOrderedAndProject
Input [3]: [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802]
Arguments: 500000, [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801 ASC NULLS FIRST, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802 ASC NULLS FIRST], [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802]
(15) AdaptiveSparkPlan
Output [3]: [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4817801, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4817824L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4817802]
Arguments: isFinalPlan=true