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 14521.0: task 32097))<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 14521.0: task 32097))<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 14521.0: task 32097))"];
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,751"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n580 ms (0 ms, 580 ms, 580 ms (stage 14513.0: task 32091))";
8 [labelType="html" label="<b>Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_data_management WHERE bigid BETWEEN 1 AND 5751) AS page) [numPartitions=1] </b><br><br>number of output rows: 5,751"];
}
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=376740]
HashAggregate(keys=[], functions=[partial_count(1)])
WholeStageCodegen (1)
InMemoryTableScan
Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_data_management WHERE bigid BETWEEN 1 AND 5751) AS page) [numPartitions=1] [_id#10600851,supplier_uid#10600852,Cid#10600853,Name#10600854,short_name#10600855,Country#10600856,City#10600857,State#10600858,average_score#10600859,company_score#10600860,Email#10600861,company_type#10600862,company_status#10600863,chain#10600864,supplier_id#10600865,company_id#10600866,UID#10600867,T1_ID#10600868,T1_NAME#10600869,Status#10600870,created_by#10600871,InvitedBy#10600872,brandname#10600873,BrandId#10600874,... 29 more fields] PushedFilters: [], ReadSchema: struct<_id:string,supplier_uid:string,Cid:string,Name:string,short_name:string,Country:string,Cit...
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=5.9 MiB, rowCount=5.75E+3)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_data_management WHERE bigid BETWEEN 1 AND 5751) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_data_management WHERE bigid BETWEEN 1 AND 5751) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [_id#10600851, supplier_uid#10600852, Cid#10600853, Name#10600854, short_name#10600855, Country#10600856, City#10600857, State#10600858, average_score#10600859, company_score#10600860, Email#10600861, company_type#10600862, company_status#10600863, chain#10600864, supplier_id#10600865, company_id#10600866, UID#10600867, T1_ID#10600868, T1_NAME#10600869, Status#10600870, created_by#10600871, InvitedBy#10600872, brandname#10600873, BrandId#10600874, ... 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_supplier_data_management WHERE bigid BETWEEN 1 AND 5751) AS page) [numPartitions=1] [_id#10600851,supplier_uid#10600852,Cid#10600853,Name#10600854,short_name#10600855,Country#10600856,City#10600857,State#10600858,average_score#10600859,company_score#10600860,Email#10600861,company_type#10600862,company_status#10600863,chain#10600864,supplier_id#10600865,company_id#10600866,UID#10600867,T1_ID#10600868,T1_NAME#10600869,Status#10600870,created_by#10600871,InvitedBy#10600872,brandname#10600873,BrandId#10600874,... 29 more fields] PushedFilters: [], ReadSchema: struct<_id:string,supplier_uid:string,Cid:string,Name:string,short_name:string,Country:string,Cit...
,None)
(3) Scan JDBCRelation((SELECT * FROM dbo.fact_supplier_data_management WHERE bigid BETWEEN 1 AND 5751) AS page) [numPartitions=1] [codegen id : 1]
Output [53]: [_id#10600851, supplier_uid#10600852, Cid#10600853, Name#10600854, short_name#10600855, Country#10600856, City#10600857, State#10600858, average_score#10600859, company_score#10600860, Email#10600861, company_type#10600862, company_status#10600863, chain#10600864, supplier_id#10600865, company_id#10600866, UID#10600867, T1_ID#10600868, T1_NAME#10600869, Status#10600870, created_by#10600871, InvitedBy#10600872, brandname#10600873, BrandId#10600874, supplier_level#10600875, direct_supplier_level#10600876, InSupCount#10600877, facility_count#10600878, count_mid#10600879, brand_supplier_level#10600880, t1_supplier_mid#10600881, t1_company_mid#10600882, brand_t1_t1_mid#10600883, brand_t1_supplier_mid#10600884, brand_supplier_mid#10600885, generated_company_id#10600886L, generated_supplier_id#10600887L, generated_t1_id#10600888L, generated_brand_id#10600889L, t1_supplier_gid#10600890, t1_company_gid#10600891, brand_t1_t1_gid#10600892, brand_t1_supplier_gid#10600893, brand_supplier_gid#10600894, filter_value#10600895, latitude#10600896, longitude#10600897, source_city#10600898, source_country#10600899, source_latitude#10600900, source_longitude#10600901, etl_runtime#10600902, bigid#10600903L]
ReadSchema: struct<_id:string,supplier_uid:string,Cid:string,Name:string,short_name:string,Country:string,City:string,State:string,average_score:string,company_score:string,Email:string,company_type:string,company_status:string,chain:int,supplier_id:string,company_id:string,UID:string,T1_ID:string,T1_NAME:string,Status:string,created_by:string,InvitedBy:string,brandname:string,BrandId:string,supplier_level:string,direct_supplier_level:string,InSupCount:int,facility_count:int,count_mid:string,brand_supplier_level:string,t1_supplier_mid:string,t1_company_mid:string,brand_t1_t1_mid:string,brand_t1_supplier_mid:string,brand_supplier_mid:string,generated_company_id:bigint,generated_supplier_id:bigint,generated_t1_id:bigint,generated_brand_id:bigint,t1_supplier_gid:string,t1_company_gid:string,brand_t1_t1_gid:string,brand_t1_supplier_gid:string,brand_supplier_gid:string,filter_value:int,latitude:double,longitude:double,source_city:string,source_country:string,source_latitude:double,source_longitude:double,etl_runtime:timestamp,bigid:bigint>
(4) TableCacheQueryStage
Output: []
Arguments: 0
(5) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10602073L]
Results [1]: [count#10602074L]
(6) Exchange
Input [1]: [count#10602074L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=376740]
(7) ShuffleQueryStage
Output [1]: [count#10602074L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#10602074L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10601275L]
Results [1]: [count(1)#10601275L AS count#10601276L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10602073L]
Results [1]: [count#10602074L]
(10) Exchange
Input [1]: [count#10602074L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=376375]
(11) HashAggregate
Input [1]: [count#10602074L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10601275L]
Results [1]: [count(1)#10601275L AS count#10601276L]
(12) AdaptiveSparkPlan
Output [1]: [count#10601276L]
Arguments: isFinalPlan=true