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: 6 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: 1<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: 756.0 B<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 4<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>3 ms (0 ms, 0 ms, 1 ms (stage 5758.0: task 5294))<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: 4<br>local bytes read: 732.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: 4<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>576.0 B (144.0 B, 144.0 B, 144.0 B (stage 5758.0: task 5292))<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>732.0 B (183.0 B, 183.0 B, 183.0 B (stage 5758.0: task 5292))"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n169 ms (40 ms, 42 ms, 45 ms (stage 5758.0: task 5294))";
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>36 ms (7 ms, 9 ms, 11 ms (stage 5758.0: task 5295))<br>peak memory total (min, med, max (stageId: taskId))<br>1024.0 KiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 5758.0: task 5292))<br>number of output rows: 4<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>Filter</b><br><br>number of output rows: 139"];
10 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 7,020<br>number of input batches: 4"];
}
11 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 4<br>scan time total (min, med, max (stageId: taskId))<br>27 ms (5 ms, 8 ms, 8 ms (stage 5758.0: task 5294))<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;
9->8;
10->9;
11->10;
}
12
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=500000, orderBy=[COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278 ASC NULLS FIRST,COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281 ASC NULLS FIRST,COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283 ASC NULLS FIRST], output=[COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278,COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281,COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283,COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L])
HashAggregate(keys=[COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, 10), ENSURE_REQUIREMENTS, [plan_id=112157]
HashAggregate(keys=[COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756], functions=[partial_count(1)])
Project [COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160 AS COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207 AS COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208 AS COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Filter ((COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100 <=> 1) AND isnotnull(str_remove_accent(upper(COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207))))
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100,COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160,COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207,COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208] Batched: true, DataFilters: [(COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100 <=> 1), isnotnull(str_remove_accent(upper(COL_4..., 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_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90:s...
== Physical Plan ==
AdaptiveSparkPlan (17)
+- == Final Plan ==
TakeOrderedAndProject (10)
+- * HashAggregate (9)
+- AQEShuffleRead (8)
+- ShuffleQueryStage (7), Statistics(sizeInBytes=576.0 B, rowCount=4)
+- Exchange (6)
+- * HashAggregate (5)
+- * Project (4)
+- * Filter (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
TakeOrderedAndProject (16)
+- HashAggregate (15)
+- Exchange (14)
+- HashAggregate (13)
+- Project (12)
+- Filter (11)
+- Scan parquet (1)
(1) Scan parquet
Output [4]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100, COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208]
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_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90:string,COL_44F7B066_1B60_4754_BFAF_2E99554C9C33:string,COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A:string>
(2) ColumnarToRow [codegen id : 1]
Input [4]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100, COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208]
(3) Filter [codegen id : 1]
Input [4]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100, COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208]
Condition : ((COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100 <=> 1) AND isnotnull(str_remove_accent(upper(COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207))))
(4) Project [codegen id : 1]
Output [3]: [COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160 AS COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207 AS COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208 AS COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Input [4]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100, COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208]
(5) HashAggregate [codegen id : 1]
Input [3]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Keys [3]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#837648L]
Results [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
(6) Exchange
Input [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
Arguments: hashpartitioning(COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, 10), ENSURE_REQUIREMENTS, [plan_id=112157]
(7) ShuffleQueryStage
Output [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
Arguments: 0
(8) AQEShuffleRead
Input [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
Arguments: coalesced
(9) HashAggregate [codegen id : 2]
Input [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
Keys [3]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#837546L]
Results [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708 AS COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755 AS COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281, COL_36637428_2696_475B_9E35_6EB297FD908C#836756 AS COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283, count(1)#837546L AS COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L]
(10) TakeOrderedAndProject
Input [4]: [COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278, COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281, COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283, COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L]
Arguments: 500000, [COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278 ASC NULLS FIRST, COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281 ASC NULLS FIRST, COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283 ASC NULLS FIRST], [COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278, COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281, COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283, COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L]
(11) Filter
Input [4]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100, COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208]
Condition : ((COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100 <=> 1) AND isnotnull(str_remove_accent(upper(COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207))))
(12) Project
Output [3]: [COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160 AS COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207 AS COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208 AS COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Input [4]: [COL_CCB5E7AD_BAFE_4446_A939_2E32C86714FB#835100, COL_88FBC2B9_E6A2_4452_A9DE_02FB51FFDA90#835160, COL_44F7B066_1B60_4754_BFAF_2E99554C9C33#835207, COL_3F4FEE97_FA91_408C_8311_5E0AF92F540A#835208]
(13) HashAggregate
Input [3]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Keys [3]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#837648L]
Results [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
(14) Exchange
Input [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
Arguments: hashpartitioning(COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, 10), ENSURE_REQUIREMENTS, [plan_id=112110]
(15) HashAggregate
Input [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756, count#837649L]
Keys [3]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755, COL_36637428_2696_475B_9E35_6EB297FD908C#836756]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#837546L]
Results [4]: [COL_D84D66A6_7FB2_46C9_B290_40F63890CF14#836708 AS COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278, COL_E71F1A60_9095_4276_8BF9_11D3FD3A782A#836755 AS COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281, COL_36637428_2696_475B_9E35_6EB297FD908C#836756 AS COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283, count(1)#837546L AS COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L]
(16) TakeOrderedAndProject
Input [4]: [COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278, COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281, COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283, COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L]
Arguments: 500000, [COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278 ASC NULLS FIRST, COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281 ASC NULLS FIRST, COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283 ASC NULLS FIRST], [COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278, COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281, COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283, COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L]
(17) AdaptiveSparkPlan
Output [4]: [COL_95A52C6E_CA55_4F6A_AB81_F39B512F8566#837278, COL_BBA67BE2_9CD6_460C_8CF0_0AFA1B67A124#837281, COL_5958FCB1_AD2F_4F0B_8328_4C0A79D416FB#837283, COL_CB079C48_AAF6_49D6_8D74_36050DA300C2#837548L]
Arguments: isFinalPlan=true