digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 9 ms";
2 [labelType="html" label="<br><b>Project</b><br><br>"];
}
3 [labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 464<br>time in aggregation build: 34 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 1"];
4 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 9.6 KiB<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 464<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: 464<br>local bytes read: 9.1 KiB<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: 43.8 KiB<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: 9.1 KiB"];
6 [labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 464<br>time in aggregation build: 30 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 1"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 28 ms";
8 [labelType="html" label="<br><b>Project</b><br><br>"];
}
9 [labelType="html" label="<b>Scan csv </b><br><br>number of output rows: 486<br>number of files read: 1<br>metadata time: 0 ms<br>size of files read: 50.8 KiB"];
2->0;
3->2;
4->3;
5->4;
6->5;
8->6;
9->8;
}
10
AdaptiveSparkPlan isFinalPlan=true
Project [COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, size(COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, true) AS COL_8F51A0D2_4AFF_4145_8D18_ECF39F6D96AC#1544407]
WholeStageCodegen (2)
ObjectHashAggregate(keys=[COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344], functions=[sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350), collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)])
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, 10), ENSURE_REQUIREMENTS, [plan_id=1008093]
ObjectHashAggregate(keys=[COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344], functions=[partial_sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350), partial_collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)])
Project [str_remove_space(str_extract_middle(_c0#1544225, 12, 20), ALL) AS COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, str_remove_space(str_extract_middle(_c0#1544225, 40, 15), ALL) AS COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, str_to_dec(str_join(array(str_extract_middle(_c0#1544225, 65, 7), str_extract_middle(_c0#1544225, 72, 3)), .), ##.##) AS COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350]
WholeStageCodegen (1)
FileScan csv [_c0#1544225] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/data/input/depot/csv/tmp/MOLECULES_ONERE_237545/MO-M12-2025.txt], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<_c0:string>
== Physical Plan ==
AdaptiveSparkPlan (15)
+- == Final Plan ==
* Project (8)
+- ObjectHashAggregate (7)
+- AQEShuffleRead (6)
+- ShuffleQueryStage (5), Statistics(sizeInBytes=43.8 KiB, rowCount=464)
+- Exchange (4)
+- ObjectHashAggregate (3)
+- * Project (2)
+- Scan csv (1)
+- == Initial Plan ==
CollectLimit (14)
+- Project (13)
+- ObjectHashAggregate (12)
+- Exchange (11)
+- ObjectHashAggregate (10)
+- Project (9)
+- Scan csv (1)
(1) Scan csv
Output [1]: [_c0#1544225]
Batched: false
Location: InMemoryFileIndex [file:/data/input/depot/csv/tmp/MOLECULES_ONERE_237545/MO-M12-2025.txt]
ReadSchema: struct<_c0:string>
(2) Project [codegen id : 1]
Output [3]: [str_remove_space(str_extract_middle(_c0#1544225, 12, 20), ALL) AS COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, str_remove_space(str_extract_middle(_c0#1544225, 40, 15), ALL) AS COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, str_to_dec(str_join(array(str_extract_middle(_c0#1544225, 65, 7), str_extract_middle(_c0#1544225, 72, 3)), .), ##.##) AS COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350]
Input [1]: [_c0#1544225]
(3) ObjectHashAggregate
Input [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350]
Keys [1]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344]
Functions [2]: [partial_sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350), partial_collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)]
Aggregate Attributes [2]: [sum#1544412, buf#1544413]
Results [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
(4) Exchange
Input [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
Arguments: hashpartitioning(COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, 10), ENSURE_REQUIREMENTS, [plan_id=1008093]
(5) ShuffleQueryStage
Output [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
Arguments: 0
(6) AQEShuffleRead
Input [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
Arguments: coalesced
(7) ObjectHashAggregate
Input [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
Keys [1]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344]
Functions [2]: [sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350), collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)]
Aggregate Attributes [2]: [sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350)#1544375, collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)#1544377]
Results [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344 AS COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350)#1544375 AS COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)#1544377 AS COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395]
(8) Project [codegen id : 2]
Output [4]: [COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, size(COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, true) AS COL_8F51A0D2_4AFF_4145_8D18_ECF39F6D96AC#1544407]
Input [3]: [COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395]
(9) Project
Output [3]: [str_remove_space(str_extract_middle(_c0#1544225, 12, 20), ALL) AS COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, str_remove_space(str_extract_middle(_c0#1544225, 40, 15), ALL) AS COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, str_to_dec(str_join(array(str_extract_middle(_c0#1544225, 65, 7), str_extract_middle(_c0#1544225, 72, 3)), .), ##.##) AS COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350]
Input [1]: [_c0#1544225]
(10) ObjectHashAggregate
Input [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350]
Keys [1]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344]
Functions [2]: [partial_sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350), partial_collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)]
Aggregate Attributes [2]: [sum#1544412, buf#1544413]
Results [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
(11) Exchange
Input [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
Arguments: hashpartitioning(COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, 10), ENSURE_REQUIREMENTS, [plan_id=1008078]
(12) ObjectHashAggregate
Input [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344, sum#1544414, buf#1544415]
Keys [1]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344]
Functions [2]: [sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350), collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)]
Aggregate Attributes [2]: [sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350)#1544375, collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)#1544377]
Results [3]: [COL_45066C9F_40FD_4BE1_ACAF_6139C274CECB#1544344 AS COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, sum(COL_0A5C8316_2B1D_4079_A885_539ABDD6AE21#1544350)#1544375 AS COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, collect_list(COL_598B29E8_BB51_4807_8D73_C5DC95DC0A1B#1544346, 0, 0)#1544377 AS COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395]
(13) Project
Output [4]: [COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, size(COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, true) AS COL_8F51A0D2_4AFF_4145_8D18_ECF39F6D96AC#1544407]
Input [3]: [COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395]
(14) CollectLimit
Input [4]: [COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, COL_8F51A0D2_4AFF_4145_8D18_ECF39F6D96AC#1544407]
Arguments: 1500
(15) AdaptiveSparkPlan
Output [4]: [COL_EE4AB0B4_F37E_40C0_9292_9E68BF166E36#1544393, COL_9BBF5C06_6C17_49B2_A3FE_90EF3C683E13#1544394, COL_A6806796_8041_41B8_9FE8_E4AC89885E74#1544395, COL_8F51A0D2_4AFF_4145_8D18_ECF39F6D96AC#1544407]
Arguments: isFinalPlan=true