digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
1 [labelType="html" label="<br><b>TakeOrderedAndProject</b><br><br>"];
2 [labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 8<br>time in aggregation build: 61 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0"];
3 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1007.0 B<br>number of coalesced partitions: 1"];
4 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 8<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: 8<br>local bytes read: 956.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: 968.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: 956.0 B"];
5 [labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 8<br>time in aggregation build: 90 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 90 ms";
7 [labelType="html" label="<br><b>Project</b><br><br>"];
8 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 6,119"];
9 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 6,119<br>number of input batches: 2"];
}
10 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 10 ms<br>metadata time: 0 ms<br>size of files read: 249.7 KiB<br>number of output rows: 6,119"];
1->0;
2->1;
3->2;
4->3;
5->4;
7->5;
8->7;
9->8;
10->9;
}
11
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=500000, orderBy=[COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903 ASC NULLS FIRST], output=[COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904,COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041,COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073,COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903,COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940])
ObjectHashAggregate(keys=[COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814], functions=[sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821), collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)])
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, 10), ENSURE_REQUIREMENTS, [plan_id=674917]
ObjectHashAggregate(keys=[COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814], functions=[partial_sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821), partial_collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)])
Project [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676 AS COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678 AS COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679 AS COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685 AS COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821]
Filter (COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687 <=> Optimisation)
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676,COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678,COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679,COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685,COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687] Batched: true, DataFilters: [(COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687 <=> Optimisation)], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/datablock/06_COMPILATION__176380], PartitionFilters: [], PushedFilters: [EqualNullSafe(COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3,Optimisation)], ReadSchema: struct<COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA:string,COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7:s...
== Physical Plan ==
AdaptiveSparkPlan (17)
+- == Final Plan ==
TakeOrderedAndProject (10)
+- ObjectHashAggregate (9)
+- AQEShuffleRead (8)
+- ShuffleQueryStage (7), Statistics(sizeInBytes=968.0 B, rowCount=8)
+- Exchange (6)
+- ObjectHashAggregate (5)
+- * Project (4)
+- * Filter (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
TakeOrderedAndProject (16)
+- ObjectHashAggregate (15)
+- Exchange (14)
+- ObjectHashAggregate (13)
+- Project (12)
+- Filter (11)
+- Scan parquet (1)
(1) Scan parquet
Output [5]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685, COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687]
Batched: true
Location: InMemoryFileIndex [file:/data/output/cache/parquet/datablock/06_COMPILATION__176380]
PushedFilters: [EqualNullSafe(COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3,Optimisation)]
ReadSchema: struct<COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA:string,COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7:string,COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E:string,COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6:double,COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3:string>
(2) ColumnarToRow [codegen id : 1]
Input [5]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685, COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687]
(3) Filter [codegen id : 1]
Input [5]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685, COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687]
Condition : (COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687 <=> Optimisation)
(4) Project [codegen id : 1]
Output [4]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676 AS COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678 AS COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679 AS COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685 AS COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821]
Input [5]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685, COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687]
(5) ObjectHashAggregate
Input [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821]
Keys [2]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814]
Functions [2]: [partial_sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821), partial_collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)]
Aggregate Attributes [2]: [sum#1204350, buf#1204351]
Results [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
(6) Exchange
Input [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
Arguments: hashpartitioning(COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, 10), ENSURE_REQUIREMENTS, [plan_id=674917]
(7) ShuffleQueryStage
Output [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
Arguments: 0
(8) AQEShuffleRead
Input [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
Arguments: coalesced
(9) ObjectHashAggregate
Input [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
Keys [2]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814]
Functions [2]: [sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821), collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)]
Aggregate Attributes [2]: [sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821)#1203936, collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)#1203939]
Results [5]: [COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814 AS COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904, round(sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821)#1203936, 2) AS COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041, COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812 AS COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903, collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)#1203939 AS COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940, str_if_with_rule((COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814 <=> +), Ajout, Suppression) AS COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073]
(10) TakeOrderedAndProject
Input [5]: [COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904, COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041, COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903, COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940, COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073]
Arguments: 500000, [COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903 ASC NULLS FIRST], [COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904, COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041, COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073, COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903, COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940]
(11) Filter
Input [5]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685, COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687]
Condition : (COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687 <=> Optimisation)
(12) Project
Output [4]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676 AS COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678 AS COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679 AS COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685 AS COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821]
Input [5]: [COL_2876989F_DEC1_40A8_860A_830E1DDD6BAA#1202676, COL_F7E6B982_AE01_4D61_95F1_A194F4B50FB7#1202678, COL_11433D90_073E_4D4F_93EA_C1D4A3867F3E#1202679, COL_E38AB62F_E896_4A72_BE7E_515F8BC641C6#1202685, COL_6348CDD7_7FF9_4337_B9DE_365982DB3BA3#1202687]
(13) ObjectHashAggregate
Input [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821]
Keys [2]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814]
Functions [2]: [partial_sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821), partial_collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)]
Aggregate Attributes [2]: [sum#1204350, buf#1204351]
Results [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
(14) Exchange
Input [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
Arguments: hashpartitioning(COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, 10), ENSURE_REQUIREMENTS, [plan_id=674835]
(15) ObjectHashAggregate
Input [4]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814, sum#1204355, buf#1204356]
Keys [2]: [COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812, COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814]
Functions [2]: [sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821), collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)]
Aggregate Attributes [2]: [sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821)#1203936, collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)#1203939]
Results [5]: [COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814 AS COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904, round(sum(COL_4A9CF164_39F8_474C_996A_E0FB3BC895CE#1203821)#1203936, 2) AS COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041, COL_29464BD7_6345_4F2A_9193_3BB4FE67DC8C#1203812 AS COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903, collect_set(COL_D9A926E4_DEA4_454C_9D26_AF8A84F6150F#1203815, 0, 0)#1203939 AS COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940, str_if_with_rule((COL_2C8AE28B_DC3A_4466_87BC_0330AD5F0E90#1203814 <=> +), Ajout, Suppression) AS COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073]
(16) TakeOrderedAndProject
Input [5]: [COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904, COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041, COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903, COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940, COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073]
Arguments: 500000, [COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903 ASC NULLS FIRST], [COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904, COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041, COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073, COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903, COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940]
(17) AdaptiveSparkPlan
Output [5]: [COL_780DBC49_29AA_4ADC_BE27_50C74D497C34#1203904, COL_2CD586FF_DBBB_4ACE_B2C1_745390F52EE5#1204041, COL_E4546317_1856_4599_B23B_40AAAF9DDC8A#1204073, COL_507C71CC_B5EF_4012_A7AD_9954FE3FDAD5#1203903, COL_91B6685F_2680_473E_9F7B_3628F9DE592A#1203940]
Arguments: isFinalPlan=true