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 14522.0: task 32098))<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 14522.0: task 32098))<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 14522.0: task 32098))"];
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: 29"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n6 ms (0 ms, 6 ms, 6 ms (stage 14514.0: task 32092))";
8 [labelType="html" label="<b>Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_facility_list WHERE bigid BETWEEN 1 AND 29) AS page) [numPartitions=1] </b><br><br>number of output rows: 29"];
}
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=376761]
HashAggregate(keys=[], functions=[partial_count(1)])
WholeStageCodegen (1)
InMemoryTableScan
Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_facility_list WHERE bigid BETWEEN 1 AND 29) AS page) [numPartitions=1] [brandid#10602340,supplier_id#10602341,Supplier Active Indicator#10602342,Tier#10602343,Tier Concat#10602344,Supplier UID#10602345,Supplier Name#10602346,Supplier Industry Key#10602347,Supplier Industry Key Description#10602348,Supplier Address Line 1#10602349,Supplier Address Line 2#10602350,Supplier City#10602351,Supplier State#10602352,Supplier Country#10602353,Supplier Zip Code#10602354,Facility Active Indicator#10602355,Facility UID#10602356,Facility Name#10602357,Facility Address Line 1#10602358,Facility Address Line 2#10602359,Facility City#10602360,Facility State#10602361,Facility Country#10602362,Facility Zip Code#10602363,... 25 more fields] PushedFilters: [], ReadSchema: struct<brandid:string,supplier_id:string,Supplier Active Indicator:string,Tier:string,Tier Concat...
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=14.5 KiB, rowCount=29)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_facility_list WHERE bigid BETWEEN 1 AND 29) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_facility_list WHERE bigid BETWEEN 1 AND 29) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [brandid#10602340, supplier_id#10602341, Supplier Active Indicator#10602342, Tier#10602343, Tier Concat#10602344, Supplier UID#10602345, Supplier Name#10602346, Supplier Industry Key#10602347, Supplier Industry Key Description#10602348, Supplier Address Line 1#10602349, Supplier Address Line 2#10602350, Supplier City#10602351, Supplier State#10602352, Supplier Country#10602353, Supplier Zip Code#10602354, Facility Active Indicator#10602355, Facility UID#10602356, Facility Name#10602357, Facility Address Line 1#10602358, Facility Address Line 2#10602359, Facility City#10602360, Facility State#10602361, Facility Country#10602362, Facility Zip Code#10602363, ... 25 more fields], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@7795a5ad,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_facility_list WHERE bigid BETWEEN 1 AND 29) AS page) [numPartitions=1] [brandid#10602340,supplier_id#10602341,Supplier Active Indicator#10602342,Tier#10602343,Tier Concat#10602344,Supplier UID#10602345,Supplier Name#10602346,Supplier Industry Key#10602347,Supplier Industry Key Description#10602348,Supplier Address Line 1#10602349,Supplier Address Line 2#10602350,Supplier City#10602351,Supplier State#10602352,Supplier Country#10602353,Supplier Zip Code#10602354,Facility Active Indicator#10602355,Facility UID#10602356,Facility Name#10602357,Facility Address Line 1#10602358,Facility Address Line 2#10602359,Facility City#10602360,Facility State#10602361,Facility Country#10602362,Facility Zip Code#10602363,... 25 more fields] PushedFilters: [], ReadSchema: struct<brandid:string,supplier_id:string,Supplier Active Indicator:string,Tier:string,Tier Concat...
,None)
(3) Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_facility_list WHERE bigid BETWEEN 1 AND 29) AS page) [numPartitions=1] [codegen id : 1]
Output [49]: [brandid#10602340, supplier_id#10602341, Supplier Active Indicator#10602342, Tier#10602343, Tier Concat#10602344, Supplier UID#10602345, Supplier Name#10602346, Supplier Industry Key#10602347, Supplier Industry Key Description#10602348, Supplier Address Line 1#10602349, Supplier Address Line 2#10602350, Supplier City#10602351, Supplier State#10602352, Supplier Country#10602353, Supplier Zip Code#10602354, Facility Active Indicator#10602355, Facility UID#10602356, Facility Name#10602357, Facility Address Line 1#10602358, Facility Address Line 2#10602359, Facility City#10602360, Facility State#10602361, Facility Country#10602362, Facility Zip Code#10602363, Facility Industry Key#10602364, Facility Industry Key Description#10602365, Product Type#10602366, Brands#10602367, Brands Concat#10602368, Contact Name#10602369, Contact Email#10602370, Contact Number#10602371, Male Employee Count#10602372, Female Employee Count#10602373, Certificates#10602374, Certificates Concat#10602375, Production Capacity#10602376, Value Process#10602377, Value Process Concat#10602378, Supplier Status#10602379, Brand Created#10602380, sp_supplier_id#10602381, fs_facility_id#10602382, Type Of Production#10602383, FG Production#10602384, RMS Production#10602385, Facility_tier#10602386, Facility_Archived_Status#10602387, bigid#10602388L]
ReadSchema: struct<brandid:string,supplier_id:string,Supplier Active Indicator:string,Tier:string,Tier Concat:string,Supplier UID:string,Supplier Name:string,Supplier Industry Key:string,Supplier Industry Key Description:string,Supplier Address Line 1:string,Supplier Address Line 2:string,Supplier City:string,Supplier State:string,Supplier Country:string,Supplier Zip Code:string,Facility Active Indicator:string,Facility UID:string,Facility Name:string,Facility Address Line 1:string,Facility Address Line 2:string,Facility City:string,Facility State:string,Facility Country:string,Facility Zip Code:string,Facility Industry Key:string,Facility Industry Key Description:string,Product Type:string,Brands:string,Brands Concat:string,Contact Name:string,Contact Email:string,Contact Number:string,Male Employee Count:double,Female Employee Count:double,Certificates:string,Certificates Concat:string,Production Capacity:string,Value Process:string,Value Process Concat:string,Supplier Status:string,Brand Created:string,sp_supplier_id:string,fs_facility_id:string,Type Of Production:string,FG Production:string,RMS Production:string,Facility_tier:string,Facility_Archived_Status:string,bigid:bigint>
(4) TableCacheQueryStage
Output: []
Arguments: 0
(5) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10603470L]
Results [1]: [count#10603471L]
(6) Exchange
Input [1]: [count#10603471L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=376761]
(7) ShuffleQueryStage
Output [1]: [count#10603471L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#10603471L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10602732L]
Results [1]: [count(1)#10602732L AS count#10602733L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10603470L]
Results [1]: [count#10603471L]
(10) Exchange
Input [1]: [count#10603471L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=376402]
(11) HashAggregate
Input [1]: [count#10603471L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10602732L]
Results [1]: [count(1)#10602732L AS count#10602733L]
(12) AdaptiveSparkPlan
Output [1]: [count#10602733L]
Arguments: isFinalPlan=true