digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: 0 ms";
2 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build: 0 ms<br>number of output rows: 1"];
}
3 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 1<br>local merged chunks fetched: 0<br>shuffle write time: 0 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: 1<br>local bytes read: 59.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: 16.0 B<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: 59.0 B"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: 102 ms";
5 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 102 ms<br>peak memory: 0.0 B<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
6 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 93 ms<br>peak memory: 66.0 MiB<br>number of output rows: 39,005<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1.4"];
}
7 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1695.5 KiB<br>number of coalesced partitions: 1"];
8 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 78,010<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>7 ms (3 ms, 3 ms, 3 ms (stage 1453.0: task 1308))<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: 78,010<br>local bytes read: 1632.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: 2<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>6.4 MiB (3.2 MiB, 3.2 MiB, 3.2 MiB (stage 1453.0: task 1307))<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>1632.3 KiB (816.2 KiB, 816.2 KiB, 816.2 KiB (stage 1453.0: task 1307))"];
subgraph cluster9 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n478 ms (239 ms, 239 ms, 239 ms (stage 1453.0: task 1307))";
10 [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>322 ms (160 ms, 162 ms, 162 ms (stage 1453.0: task 1308))<br>peak memory total (min, med, max (stageId: taskId))<br>132.0 MiB (66.0 MiB, 66.0 MiB, 66.0 MiB (stage 1453.0: task 1307))<br>number of output rows: 78,010<br>number of sort fallback tasks: 0<br>avg hash probes per key (min, med, max (stageId: taskId)):<br>(1.5, 1.5, 1.5 (stage 1453.0: task 1307))"];
}
11 [labelType="html" label="<br><b>Union</b><br><br>"];
subgraph cluster12 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 182 ms";
13 [labelType="html" label="<br><b>Project</b><br><br>"];
14 [labelType="html" label="<b>Scan JDBCRelation((SELECT \"cp_codpos\", \"cp_burdis\", \"cp_codpays\", \"cp_coduti\", \"cp_datmaj\", \"cp_codinsee\" FROM \"xplore\".\"h_codpos\") as x) [numPartitions=1] </b><br><br>number of output rows: 39,005"];
}
subgraph cluster15 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 187 ms";
16 [labelType="html" label="<br><b>Project</b><br><br>"];
17 [labelType="html" label="<b>Scan JDBCRelation((SELECT \"cp_codpos\", \"cp_burdis\", \"cp_codpays\", \"cp_coduti\", \"cp_datmaj\", \"cp_codinsee\" FROM \"xplore2\".\"h_codpos\") as x) [numPartitions=1] </b><br><br>number of output rows: 39,005"];
}
2->0;
3->2;
5->3;
6->5;
7->6;
8->7;
10->8;
11->10;
13->11;
14->13;
16->11;
17->16;
}
18
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[], functions=[count(1)])
WholeStageCodegen (5)
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=23206]
HashAggregate(keys=[], functions=[partial_count(1)])
HashAggregate(keys=[CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014], functions=[])
WholeStageCodegen (4)
AQEShuffleRead coalesced
Exchange hashpartitioning(CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014, 10), ENSURE_REQUIREMENTS, [plan_id=23105]
HashAggregate(keys=[CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014], functions=[])
WholeStageCodegen (3)
Union
Project [cp_burdis#321967 AS CP_BURDIS_437228#322008, cp_codinsee#321971 AS CP_CODINSEE_437232#322009, cp_codpays#321968 AS CP_CODPAYS_437229#322010, cp_codpos#321966 AS CP_CODPOS_437227#322011, cp_coduti#321969 AS CP_CODUTI_437230#322012, cp_datmaj#321970 AS CP_DATMAJ_437231#322013, null AS ORIGINE_440138#322014]
Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore"."h_codpos") as x) [numPartitions=1] [cp_burdis#321967,cp_codinsee#321971,cp_codpays#321968,cp_codpos#321966,cp_coduti#321969,cp_datmaj#321970] PushedFilters: [], ReadSchema: struct<cp_burdis:string,cp_codinsee:string,cp_codpays:string,cp_codpos:string,cp_coduti:string,cp...
WholeStageCodegen (1)
Project [cp_burdis#322023 AS CP_BURDIS_437228#322064, cp_codinsee#322027 AS CP_CODINSEE_437232#322065, cp_codpays#322024 AS CP_CODPAYS_437229#322066, cp_codpos#322022 AS CP_CODPOS_437227#322067, cp_coduti#322025 AS CP_CODUTI_437230#322068, cp_datmaj#322026 AS CP_DATMAJ_437231#322069, null AS ORIGINE_440138#322070]
Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore2"."h_codpos") as x) [numPartitions=1] [cp_burdis#322023,cp_codinsee#322027,cp_codpays#322024,cp_codpos#322022,cp_coduti#322025,cp_datmaj#322026] PushedFilters: [], ReadSchema: struct<cp_burdis:string,cp_codinsee:string,cp_codpays:string,cp_codpos:string,cp_coduti:string,cp...
WholeStageCodegen (2)
== Physical Plan ==
AdaptiveSparkPlan (22)
+- == Final Plan ==
* HashAggregate (14)
+- ShuffleQueryStage (13), Statistics(sizeInBytes=16.0 B, rowCount=1)
+- Exchange (12)
+- * HashAggregate (11)
+- * HashAggregate (10)
+- AQEShuffleRead (9)
+- ShuffleQueryStage (8), Statistics(sizeInBytes=6.4 MiB, rowCount=7.80E+4)
+- Exchange (7)
+- * HashAggregate (6)
+- Union (5)
:- * Project (2)
: +- * Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore"."h_codpos") as x) [numPartitions=1] (1)
+- * Project (4)
+- * Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore2"."h_codpos") as x) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (21)
+- Exchange (20)
+- HashAggregate (19)
+- HashAggregate (18)
+- Exchange (17)
+- HashAggregate (16)
+- Union (15)
:- Project (2)
: +- Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore"."h_codpos") as x) [numPartitions=1] (1)
+- Project (4)
+- Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore2"."h_codpos") as x) [numPartitions=1] (3)
(1) Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore"."h_codpos") as x) [numPartitions=1] [codegen id : 1]
Output [6]: [cp_burdis#321967, cp_codinsee#321971, cp_codpays#321968, cp_codpos#321966, cp_coduti#321969, cp_datmaj#321970]
ReadSchema: struct<cp_burdis:string,cp_codinsee:string,cp_codpays:string,cp_codpos:string,cp_coduti:string,cp_datmaj:string>
(2) Project [codegen id : 1]
Output [7]: [cp_burdis#321967 AS CP_BURDIS_437228#322008, cp_codinsee#321971 AS CP_CODINSEE_437232#322009, cp_codpays#321968 AS CP_CODPAYS_437229#322010, cp_codpos#321966 AS CP_CODPOS_437227#322011, cp_coduti#321969 AS CP_CODUTI_437230#322012, cp_datmaj#321970 AS CP_DATMAJ_437231#322013, null AS ORIGINE_440138#322014]
Input [6]: [cp_burdis#321967, cp_codinsee#321971, cp_codpays#321968, cp_codpos#321966, cp_coduti#321969, cp_datmaj#321970]
(3) Scan JDBCRelation((SELECT "cp_codpos", "cp_burdis", "cp_codpays", "cp_coduti", "cp_datmaj", "cp_codinsee" FROM "xplore2"."h_codpos") as x) [numPartitions=1] [codegen id : 2]
Output [6]: [cp_burdis#322023, cp_codinsee#322027, cp_codpays#322024, cp_codpos#322022, cp_coduti#322025, cp_datmaj#322026]
ReadSchema: struct<cp_burdis:string,cp_codinsee:string,cp_codpays:string,cp_codpos:string,cp_coduti:string,cp_datmaj:string>
(4) Project [codegen id : 2]
Output [7]: [cp_burdis#322023 AS CP_BURDIS_437228#322064, cp_codinsee#322027 AS CP_CODINSEE_437232#322065, cp_codpays#322024 AS CP_CODPAYS_437229#322066, cp_codpos#322022 AS CP_CODPOS_437227#322067, cp_coduti#322025 AS CP_CODUTI_437230#322068, cp_datmaj#322026 AS CP_DATMAJ_437231#322069, null AS ORIGINE_440138#322070]
Input [6]: [cp_burdis#322023, cp_codinsee#322027, cp_codpays#322024, cp_codpos#322022, cp_coduti#322025, cp_datmaj#322026]
(5) Union
(6) HashAggregate [codegen id : 3]
Input [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Keys [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Functions: []
Aggregate Attributes: []
Results [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
(7) Exchange
Input [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Arguments: hashpartitioning(CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014, 10), ENSURE_REQUIREMENTS, [plan_id=23105]
(8) ShuffleQueryStage
Output [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Arguments: 0
(9) AQEShuffleRead
Input [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Arguments: coalesced
(10) HashAggregate [codegen id : 4]
Input [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Keys [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Functions: []
Aggregate Attributes: []
Results: []
(11) HashAggregate [codegen id : 4]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#322193L]
Results [1]: [count#322194L]
(12) Exchange
Input [1]: [count#322194L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=23206]
(13) ShuffleQueryStage
Output [1]: [count#322194L]
Arguments: 1
(14) HashAggregate [codegen id : 5]
Input [1]: [count#322194L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#322190L]
Results [1]: [count(1)#322190L AS count#322191L]
(15) Union
(16) HashAggregate
Input [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Keys [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Functions: []
Aggregate Attributes: []
Results [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
(17) Exchange
Input [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Arguments: hashpartitioning(CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014, 10), ENSURE_REQUIREMENTS, [plan_id=23077]
(18) HashAggregate
Input [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Keys [7]: [CP_BURDIS_437228#322008, CP_CODINSEE_437232#322009, CP_CODPAYS_437229#322010, CP_CODPOS_437227#322011, CP_CODUTI_437230#322012, CP_DATMAJ_437231#322013, ORIGINE_440138#322014]
Functions: []
Aggregate Attributes: []
Results: []
(19) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#322193L]
Results [1]: [count#322194L]
(20) Exchange
Input [1]: [count#322194L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=23081]
(21) HashAggregate
Input [1]: [count#322194L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#322190L]
Results [1]: [count(1)#322190L AS count#322191L]
(22) AdaptiveSparkPlan
Output [1]: [count#322191L]
Arguments: isFinalPlan=true