digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (2)\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 total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 13987.0: task 31540))<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 total (min, med, max (stageId: taskId))<br>16.0 B (0.0 B, 16.0 B, 16.0 B (stage 13987.0: task 31540))<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 total (min, med, max (stageId: taskId))<br>59.0 B (0.0 B, 59.0 B, 59.0 B (stage 13987.0: task 31540))"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
5 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build: 0 ms<br>number of output rows: 1"];
}
6 [labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 11"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n2 ms (0 ms, 2 ms, 2 ms (stage 13977.0: task 31532))";
8 [labelType="html" label="<b>Scan JDBCRelation((SELECT * FROM dbo.fact_kharon_risk_caluclation WHERE bigid BETWEEN 1 AND 11) AS page) [numPartitions=1] </b><br><br>number of output rows: 11"];
}
2->0;
3->2;
5->3;
6->5;
8->6;
}
9
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[], functions=[count(1)])
WholeStageCodegen (2)
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=360847]
HashAggregate(keys=[], functions=[partial_count(1)])
WholeStageCodegen (1)
InMemoryTableScan
Scan JDBCRelation((SELECT * FROM dbo.fact_kharon_risk_caluclation WHERE bigid BETWEEN 1 AND 11) AS page) [numPartitions=1] [brandid#10406570,supplier_id#10406571,uninuekeycolumn#10406572,product_supplier_ref_id#10406573,product_facility_ref_id#10406574,product_entity#10406575,product_entity_source#10406576,product_sub_contractor#10406577,product_sub_contractor_name#10406578,source_module#10406579,tiers#10406580,products#10406581,root_ref_id#10406582,product_supplier_type#10406583,fname#10406584,supplier_name#10406585,preferred_supplier_ref_id#10406586,preferred_supplier_name#10406587,countries#10406588,city#10406589,state#10406590,supplieruid#10406591,cbp_risk#10406592,kharaon_risk#10406593,... 29 more fields] PushedFilters: [], ReadSchema: struct<brandid:string,supplier_id:string,uninuekeycolumn:string,product_supplier_ref_id:string,pr...
WholeStageCodegen (1)
== Physical Plan ==
AdaptiveSparkPlan (12)
+- == Final Plan ==
* HashAggregate (8)
+- ShuffleQueryStage (7), Statistics(sizeInBytes=16.0 B, rowCount=1)
+- Exchange (6)
+- * HashAggregate (5)
+- TableCacheQueryStage (4), Statistics(sizeInBytes=6.7 KiB, rowCount=11)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_kharon_risk_caluclation WHERE bigid BETWEEN 1 AND 11) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_kharon_risk_caluclation WHERE bigid BETWEEN 1 AND 11) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [brandid#10406570, supplier_id#10406571, uninuekeycolumn#10406572, product_supplier_ref_id#10406573, product_facility_ref_id#10406574, product_entity#10406575, product_entity_source#10406576, product_sub_contractor#10406577, product_sub_contractor_name#10406578, source_module#10406579, tiers#10406580, products#10406581, root_ref_id#10406582, product_supplier_type#10406583, fname#10406584, supplier_name#10406585, preferred_supplier_ref_id#10406586, preferred_supplier_name#10406587, countries#10406588, city#10406589, state#10406590, supplieruid#10406591, cbp_risk#10406592, kharaon_risk#10406593, ... 29 more fields], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@7795a5ad,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Scan JDBCRelation((SELECT * FROM dbo.fact_kharon_risk_caluclation WHERE bigid BETWEEN 1 AND 11) AS page) [numPartitions=1] [brandid#10406570,supplier_id#10406571,uninuekeycolumn#10406572,product_supplier_ref_id#10406573,product_facility_ref_id#10406574,product_entity#10406575,product_entity_source#10406576,product_sub_contractor#10406577,product_sub_contractor_name#10406578,source_module#10406579,tiers#10406580,products#10406581,root_ref_id#10406582,product_supplier_type#10406583,fname#10406584,supplier_name#10406585,preferred_supplier_ref_id#10406586,preferred_supplier_name#10406587,countries#10406588,city#10406589,state#10406590,supplieruid#10406591,cbp_risk#10406592,kharaon_risk#10406593,... 29 more fields] PushedFilters: [], ReadSchema: struct<brandid:string,supplier_id:string,uninuekeycolumn:string,product_supplier_ref_id:string,pr...
,None)
(3) Scan JDBCRelation((SELECT * FROM dbo.fact_kharon_risk_caluclation WHERE bigid BETWEEN 1 AND 11) AS page) [numPartitions=1] [codegen id : 1]
Output [53]: [brandid#10406570, supplier_id#10406571, uninuekeycolumn#10406572, product_supplier_ref_id#10406573, product_facility_ref_id#10406574, product_entity#10406575, product_entity_source#10406576, product_sub_contractor#10406577, product_sub_contractor_name#10406578, source_module#10406579, tiers#10406580, products#10406581, root_ref_id#10406582, product_supplier_type#10406583, fname#10406584, supplier_name#10406585, preferred_supplier_ref_id#10406586, preferred_supplier_name#10406587, countries#10406588, city#10406589, state#10406590, supplieruid#10406591, cbp_risk#10406592, kharaon_risk#10406593, directsupplier#10406594, supplierproducttype#10406595, productid#10406596, norm_supplier_name#10406597, risk_type#10406598, risk_entity#10406599, source#10406600, used_threshold#10406601, matched_percentage#10406602, ForcedLabour_CBP.Entity Name#10406603, IsRisk#10406604, Risk Entity Location#10406605, Risk Entity Address#10406606, product_metadata_name#10406607, brandPOlineitem#10406608, BrandPO#10406609, po_metadata_name#10406610, po_metadata_id#10406611, product_metadata_id#10406612, CBPRereshtime#10406613, kharon_id#10406614, CBP_risk_enitity#10406615, ProductName#10406616, data_collection_type#10406617, NS_PO#10406618, NS_T1PO#10406619, dedupe_status#10406620, Risk Basis#10406621, bigid#10406622L]
ReadSchema: struct<brandid:string,supplier_id:string,uninuekeycolumn:string,product_supplier_ref_id:string,product_facility_ref_id:string,product_entity:string,product_entity_source:string,product_sub_contractor:string,product_sub_contractor_name:string,source_module:string,tiers:int,products:string,root_ref_id:string,product_supplier_type:string,fname:string,supplier_name:string,preferred_supplier_ref_id:string,preferred_supplier_name:string,countries:string,city:string,state:string,supplieruid:string,cbp_risk:string,kharaon_risk:string,directsupplier:string,supplierproducttype:string,productid:string,norm_supplier_name:string,risk_type:string,risk_entity:string,source:string,used_threshold:string,matched_percentage:decimal(12,2),ForcedLabour_CBP.Entity Name:string,IsRisk:int,Risk Entity Location:string,Risk Entity Address:string,product_metadata_name:string,brandPOlineitem:int,BrandPO:int,po_metadata_name:string,po_metadata_id:string,product_metadata_id:string,CBPRereshtime:timestamp,kharon_id:string,CBP_risk_enitity:string,ProductName:string,data_collection_type:string,NS_PO:string,NS_T1PO:string,dedupe_status:string,Risk Basis:string,bigid:bigint>
(4) TableCacheQueryStage
Output: []
Arguments: 0
(5) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10407792L]
Results [1]: [count#10407793L]
(6) Exchange
Input [1]: [count#10407793L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=360847]
(7) ShuffleQueryStage
Output [1]: [count#10407793L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#10407793L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10406994L]
Results [1]: [count(1)#10406994L AS count#10406995L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10407792L]
Results [1]: [count#10407793L]
(10) Exchange
Input [1]: [count#10407793L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=360235]
(11) HashAggregate
Input [1]: [count#10407793L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10406994L]
Results [1]: [count(1)#10406994L AS count#10406995L]
(12) AdaptiveSparkPlan
Output [1]: [count#10406995L]
Arguments: isFinalPlan=true