digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 6 ms";
2 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 1 ms<br>peak memory: 64.2 MiB<br>number of output rows: 4<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1"];
}
3 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 323.0 B<br>number of coalesced partitions: 1"];
4 [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: 307.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: 256.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: 307.0 B"];
subgraph cluster5 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 39 ms";
6 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 14 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="<br><b>Project</b><br><br>"];
}
8 [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;
4->3;
6->4;
7->6;
8->7;
}
9
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871], functions=[sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, 10), ENSURE_REQUIREMENTS, [plan_id=513]
HashAggregate(keys=[COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871], functions=[partial_sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), partial_avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), partial_count(1)])
Project [cast(Année#1809 as int) AS COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, Mois#1810 AS COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, cast(REFORMAT_FOR_DOUBLE(Montant#1812) as double) AS COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873]
WholeStageCodegen (1)
FileScan csv [Année#1809,Mois#1810,Montant#1812] 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,Montant:string>
== Physical Plan ==
AdaptiveSparkPlan (13)
+- == Final Plan ==
* HashAggregate (7)
+- AQEShuffleRead (6)
+- ShuffleQueryStage (5), Statistics(sizeInBytes=256.0 B, rowCount=4)
+- Exchange (4)
+- * HashAggregate (3)
+- * Project (2)
+- Scan csv (1)
+- == Initial Plan ==
CollectLimit (12)
+- HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- Project (8)
+- Scan csv (1)
(1) Scan csv
Output [3]: [Année#1809, Mois#1810, Montant#1812]
Batched: false
Location: InMemoryFileIndex [file:/data/input/depot/csv/execution/AGREGATIONS_14338/current/SampleAgreg.csv]
ReadSchema: struct<Année:string,Mois:string,Montant:string>
(2) Project [codegen id : 1]
Output [3]: [cast(Année#1809 as int) AS COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, Mois#1810 AS COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, cast(REFORMAT_FOR_DOUBLE(Montant#1812) as double) AS COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873]
Input [3]: [Année#1809, Mois#1810, Montant#1812]
(3) HashAggregate [codegen id : 1]
Input [3]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871]
Functions [3]: [partial_sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), partial_avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), partial_count(1)]
Aggregate Attributes [4]: [sum#1913, sum#1914, count#1915L, count#1916L]
Results [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
(4) Exchange
Input [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
Arguments: hashpartitioning(COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, 10), ENSURE_REQUIREMENTS, [plan_id=513]
(5) ShuffleQueryStage
Output [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
Arguments: 0
(6) AQEShuffleRead
Input [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
Arguments: coalesced
(7) HashAggregate [codegen id : 2]
Input [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871]
Functions [3]: [sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), count(1)]
Aggregate Attributes [3]: [sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1884, avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1886, count(1)#1888L]
Results [5]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870 AS COL_54C79A28_5F6D_437A_B07F_0C773186CFB2#1903, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871 AS COL_BA91770C_41C7_4F80_858F_41EC6C7F3AAF#1904, round(sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1884, 2) AS COL_163EA3B5_5757_4DDE_9599_6D5A63964510#1905, round(avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1886, 2) AS COL_D541A55B_ED70_4E68_9804_FEA98656D59A#1906, count(1)#1888L AS COL_396AC741_71FE_4EB2_B543_BA457999FB86#1907L]
(8) Project
Output [3]: [cast(Année#1809 as int) AS COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, Mois#1810 AS COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, cast(REFORMAT_FOR_DOUBLE(Montant#1812) as double) AS COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873]
Input [3]: [Année#1809, Mois#1810, Montant#1812]
(9) HashAggregate
Input [3]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871]
Functions [3]: [partial_sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), partial_avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), partial_count(1)]
Aggregate Attributes [4]: [sum#1913, sum#1914, count#1915L, count#1916L]
Results [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
(10) Exchange
Input [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
Arguments: hashpartitioning(COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, 10), ENSURE_REQUIREMENTS, [plan_id=499]
(11) HashAggregate
Input [6]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871, sum#1917, sum#1918, count#1919L, count#1920L]
Keys [2]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871]
Functions [3]: [sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873), count(1)]
Aggregate Attributes [3]: [sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1884, avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1886, count(1)#1888L]
Results [5]: [COL_E707C82E_E5B1_49CF_A378_44100666C257#1870 AS COL_54C79A28_5F6D_437A_B07F_0C773186CFB2#1903, COL_BF15E415_BED4_4B8C_989F_423694B9A23E#1871 AS COL_BA91770C_41C7_4F80_858F_41EC6C7F3AAF#1904, round(sum(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1884, 2) AS COL_163EA3B5_5757_4DDE_9599_6D5A63964510#1905, round(avg(COL_88EEDC58_735D_4CDE_8DCB_31D91FD1EB2D#1873)#1886, 2) AS COL_D541A55B_ED70_4E68_9804_FEA98656D59A#1906, count(1)#1888L AS COL_396AC741_71FE_4EB2_B543_BA457999FB86#1907L]
(12) CollectLimit
Input [5]: [COL_54C79A28_5F6D_437A_B07F_0C773186CFB2#1903, COL_BA91770C_41C7_4F80_858F_41EC6C7F3AAF#1904, COL_163EA3B5_5757_4DDE_9599_6D5A63964510#1905, COL_D541A55B_ED70_4E68_9804_FEA98656D59A#1906, COL_396AC741_71FE_4EB2_B543_BA457999FB86#1907L]
Arguments: 1500
(13) AdaptiveSparkPlan
Output [5]: [COL_54C79A28_5F6D_437A_B07F_0C773186CFB2#1903, COL_BA91770C_41C7_4F80_858F_41EC6C7F3AAF#1904, COL_163EA3B5_5757_4DDE_9599_6D5A63964510#1905, COL_D541A55B_ED70_4E68_9804_FEA98656D59A#1906, COL_396AC741_71FE_4EB2_B543_BA457999FB86#1907L]
Arguments: isFinalPlan=true