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 13813.0: task 31441))<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 13813.0: task 31441))<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 13813.0: task 31441))"];
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: 5"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n2 ms (0 ms, 2 ms, 2 ms (stage 13033.0: task 31299))";
8 [labelType="html" label="<b>Scan JDBCRelation((SELECT * FROM dbo.fact_cbp_risk_caluclation WHERE bigid BETWEEN 1 AND 5) AS page) [numPartitions=1] </b><br><br>number of output rows: 5"];
}
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=353521]
HashAggregate(keys=[], functions=[partial_count(1)])
WholeStageCodegen (1)
InMemoryTableScan
Scan JDBCRelation((SELECT * FROM dbo.fact_cbp_risk_caluclation WHERE bigid BETWEEN 1 AND 5) AS page) [numPartitions=1] [brandid#9743907,supplier_id#9743908,uninuekeycolumn#9743909,product_supplier_ref_id#9743910,product_facility_ref_id#9743911,product_entity#9743912,product_entity_source#9743913,product_sub_contractor#9743914,product_sub_contractor_name#9743915,source_module#9743916,tiers#9743917,products#9743918,root_ref_id#9743919,product_supplier_type#9743920,fname#9743921,supplier_name#9743922,preferred_supplier_ref_id#9743923,preferred_supplier_name#9743924,countries#9743925,city#9743926,state#9743927,supplieruid#9743928,cbp_risk#9743929,kharaon_risk#9743930,... 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=3.0 KiB, rowCount=5)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_cbp_risk_caluclation WHERE bigid BETWEEN 1 AND 5) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_cbp_risk_caluclation WHERE bigid BETWEEN 1 AND 5) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [brandid#9743907, supplier_id#9743908, uninuekeycolumn#9743909, product_supplier_ref_id#9743910, product_facility_ref_id#9743911, product_entity#9743912, product_entity_source#9743913, product_sub_contractor#9743914, product_sub_contractor_name#9743915, source_module#9743916, tiers#9743917, products#9743918, root_ref_id#9743919, product_supplier_type#9743920, fname#9743921, supplier_name#9743922, preferred_supplier_ref_id#9743923, preferred_supplier_name#9743924, countries#9743925, city#9743926, state#9743927, supplieruid#9743928, cbp_risk#9743929, kharaon_risk#9743930, ... 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_cbp_risk_caluclation WHERE bigid BETWEEN 1 AND 5) AS page) [numPartitions=1] [brandid#9743907,supplier_id#9743908,uninuekeycolumn#9743909,product_supplier_ref_id#9743910,product_facility_ref_id#9743911,product_entity#9743912,product_entity_source#9743913,product_sub_contractor#9743914,product_sub_contractor_name#9743915,source_module#9743916,tiers#9743917,products#9743918,root_ref_id#9743919,product_supplier_type#9743920,fname#9743921,supplier_name#9743922,preferred_supplier_ref_id#9743923,preferred_supplier_name#9743924,countries#9743925,city#9743926,state#9743927,supplieruid#9743928,cbp_risk#9743929,kharaon_risk#9743930,... 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_cbp_risk_caluclation WHERE bigid BETWEEN 1 AND 5) AS page) [numPartitions=1] [codegen id : 1]
Output [53]: [brandid#9743907, supplier_id#9743908, uninuekeycolumn#9743909, product_supplier_ref_id#9743910, product_facility_ref_id#9743911, product_entity#9743912, product_entity_source#9743913, product_sub_contractor#9743914, product_sub_contractor_name#9743915, source_module#9743916, tiers#9743917, products#9743918, root_ref_id#9743919, product_supplier_type#9743920, fname#9743921, supplier_name#9743922, preferred_supplier_ref_id#9743923, preferred_supplier_name#9743924, countries#9743925, city#9743926, state#9743927, supplieruid#9743928, cbp_risk#9743929, kharaon_risk#9743930, directsupplier#9743931, supplierproducttype#9743932, productid#9743933, norm_supplier_name#9743934, risk_type#9743935, risk_entity#9743936, source#9743937, used_threshold#9743938, matched_percentage#9743939, ForcedLabour_CBP.Entity Name#9743940, IsRisk#9743941, Risk Entity Location#9743942, Risk Entity Address#9743943, product_metadata_name#9743944, brandPOlineitem#9743945, BrandPO#9743946, po_metadata_name#9743947, po_metadata_id#9743948, product_metadata_id#9743949, CBPRereshtime#9743950, kharon_id#9743951, CBP_risk_enitity#9743952, ProductName#9743953, data_collection_type#9743954, NS_PO#9743955, NS_T1PO#9743956, dedupe_status#9743957, Risk Basis#9743958, bigid#9743959L]
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#9746551L]
Results [1]: [count#9746552L]
(6) Exchange
Input [1]: [count#9746552L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=353521]
(7) ShuffleQueryStage
Output [1]: [count#9746552L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#9746552L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#9745360L]
Results [1]: [count(1)#9745360L AS count#9745361L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#9746551L]
Results [1]: [count#9746552L]
(10) Exchange
Input [1]: [count#9746552L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=333153]
(11) HashAggregate
Input [1]: [count#9746552L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#9745360L]
Results [1]: [count(1)#9745360L AS count#9745361L]
(12) AdaptiveSparkPlan
Output [1]: [count#9745361L]
Arguments: isFinalPlan=true