digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (3)\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 (2)\n \nduration: 6 ms";
5 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 5 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: 1 ms<br>peak memory: 256.0 KiB<br>number of output rows: 4<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
}
7 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 248.0 B<br>number of coalesced partitions: 1"];
8 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 4<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: 4<br>local bytes read: 229.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: 128.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: 229.0 B"];
subgraph cluster9 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 26 ms";
10 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 16 ms<br>peak memory: 256.0 KiB<br>number of output rows: 4<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
11 [labelType="html" label="<br><b>Project</b><br><br>"];
}
12 [labelType="html" label="<b>Scan csv </b><br><br>number of output rows: 9<br>number of files read: 1<br>metadata time: 0 ms<br>size of files read: 209.0 B"];
2->0;
3->2;
5->3;
6->5;
7->6;
8->7;
10->8;
11->10;
12->11;
}
13
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[], functions=[count(1)])
WholeStageCodegen (3)
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=465]
HashAggregate(keys=[], functions=[partial_count(1)])
HashAggregate(keys=[COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738], functions=[])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738, 10), ENSURE_REQUIREMENTS, [plan_id=411]
HashAggregate(keys=[COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738], functions=[])
Project [cast(Année#1676 as int) AS COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, Mois#1677 AS COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
WholeStageCodegen (1)
FileScan csv [Année#1676,Mois#1677] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/data/input/depot/csv/execution/AGREGATIONS_14338/current/SampleA..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<Année:string,Mois:string>
== Physical Plan ==
AdaptiveSparkPlan (19)
+- == Final Plan ==
* HashAggregate (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=16.0 B, rowCount=1)
+- Exchange (9)
+- * HashAggregate (8)
+- * HashAggregate (7)
+- AQEShuffleRead (6)
+- ShuffleQueryStage (5), Statistics(sizeInBytes=128.0 B, rowCount=4)
+- Exchange (4)
+- * HashAggregate (3)
+- * Project (2)
+- Scan csv (1)
+- == Initial Plan ==
HashAggregate (18)
+- Exchange (17)
+- HashAggregate (16)
+- HashAggregate (15)
+- Exchange (14)
+- HashAggregate (13)
+- Project (12)
+- Scan csv (1)
(1) Scan csv
Output [2]: [Année#1676, Mois#1677]
Batched: false
Location: InMemoryFileIndex [file:/data/input/depot/csv/execution/AGREGATIONS_14338/current/SampleAgreg.csv]
ReadSchema: struct<Année:string,Mois:string>
(2) Project [codegen id : 1]
Output [2]: [cast(Année#1676 as int) AS COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, Mois#1677 AS COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Input [2]: [Année#1676, Mois#1677]
(3) HashAggregate [codegen id : 1]
Input [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Functions: []
Aggregate Attributes: []
Results [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
(4) Exchange
Input [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Arguments: hashpartitioning(COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738, 10), ENSURE_REQUIREMENTS, [plan_id=411]
(5) ShuffleQueryStage
Output [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Arguments: 0
(6) AQEShuffleRead
Input [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Arguments: coalesced
(7) HashAggregate [codegen id : 2]
Input [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Functions: []
Aggregate Attributes: []
Results: []
(8) HashAggregate [codegen id : 2]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#1788L]
Results [1]: [count#1789L]
(9) Exchange
Input [1]: [count#1789L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=465]
(10) ShuffleQueryStage
Output [1]: [count#1789L]
Arguments: 1
(11) HashAggregate [codegen id : 3]
Input [1]: [count#1789L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#1785L]
Results [1]: [count(1)#1785L AS count#1786L]
(12) Project
Output [2]: [cast(Année#1676 as int) AS COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, Mois#1677 AS COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Input [2]: [Année#1676, Mois#1677]
(13) HashAggregate
Input [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Functions: []
Aggregate Attributes: []
Results [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
(14) Exchange
Input [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Arguments: hashpartitioning(COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738, 10), ENSURE_REQUIREMENTS, [plan_id=389]
(15) HashAggregate
Input [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1737, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1738]
Functions: []
Aggregate Attributes: []
Results: []
(16) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#1788L]
Results [1]: [count#1789L]
(17) Exchange
Input [1]: [count#1789L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=393]
(18) HashAggregate
Input [1]: [count#1789L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#1785L]
Results [1]: [count(1)#1785L AS count#1786L]
(19) AdaptiveSparkPlan
Output [1]: [count#1786L]
Arguments: isFinalPlan=true