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: 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: 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 49341.0: task 36921))<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 49341.0: task 36920))<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 49341.0: task 36920))"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n491 ms (92 ms, 97 ms, 105 ms (stage 49341.0: task 36922))";
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>462 ms (86 ms, 93 ms, 98 ms (stage 49341.0: task 36924))<br>peak memory total (min, med, max (stageId: taskId))<br>1280.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 49341.0: task 36920))<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>21 ms (1 ms, 4 ms, 6 ms (stage 49341.0: task 36923))<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#4815006 ASC NULLS FIRST,COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007 ASC NULLS FIRST], output=[COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006,COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L,COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007])
HashAggregate(keys=[COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, 10), ENSURE_REQUIREMENTS, [plan_id=2072042]
HashAggregate(keys=[COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892], functions=[partial_count(1)])
Project [COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766 AS COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, str_join(array(str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, 5, 4), str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, 3, 2)), -) AS COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950]
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758,COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766] 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#4814758, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766]
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#4814758, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766]
(3) Project [codegen id : 1]
Output [2]: [COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766 AS COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, str_join(array(str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, 5, 4), str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, 3, 2)), -) AS COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950]
Input [2]: [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766]
(4) HashAggregate [codegen id : 1]
Input [2]: [COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#4815182L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
(5) Exchange
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
Arguments: hashpartitioning(COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, 10), ENSURE_REQUIREMENTS, [plan_id=2072042]
(6) ShuffleQueryStage
Output [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
Arguments: 0
(7) AQEShuffleRead
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
Arguments: coalesced
(8) HashAggregate [codegen id : 2]
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#4815027L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950 AS COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006, count(1)#4815027L AS COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892 AS COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007]
(9) TakeOrderedAndProject
Input [3]: [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007]
Arguments: 500000, [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006 ASC NULLS FIRST, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007 ASC NULLS FIRST], [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007]
(10) Project
Output [2]: [COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766 AS COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, str_join(array(str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, 5, 4), str_extract_middle(COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, 3, 2)), -) AS COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950]
Input [2]: [COL_24B70AFC_A481_42F7_BC8F_E9E89DEC4255#4814758, COL_493B3625_15CC_4C3E_B552_CFFC349A58D4#4814766]
(11) HashAggregate
Input [2]: [COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#4815182L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
(12) Exchange
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
Arguments: hashpartitioning(COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, 10), ENSURE_REQUIREMENTS, [plan_id=2072023]
(13) HashAggregate
Input [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892, count#4815183L]
Keys [2]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#4815027L]
Results [3]: [COL_C4DC0E04_9E6D_4CC6_B51E_74CDA3126777#4814950 AS COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006, count(1)#4815027L AS COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L, COL_B8C7EA89_3275_4A6F_A115_093BA48CDB2D#4814892 AS COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007]
(14) TakeOrderedAndProject
Input [3]: [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007]
Arguments: 500000, [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006 ASC NULLS FIRST, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007 ASC NULLS FIRST], [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007]
(15) AdaptiveSparkPlan
Output [3]: [COL_D7DF282B_2B15_4B61_B8F5_65AFB7842CDF#4815006, COL_30D5F9D8_E72E_4C9D_9318_11E5C605643B#4815029L, COL_F71335CF_9A0F_4786_9F54_756B23A52DCC#4815007]
Arguments: isFinalPlan=true