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 13984.0: task 31537))<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 13984.0: task 31537))<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 13984.0: task 31537))"];
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: 483"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n95 ms (0 ms, 95 ms, 95 ms (stage 13972.0: task 31529))";
8 [labelType="html" label="<b>Scan JDBCRelation((SELECT * FROM dbo.fact_indirect_supplier_data WHERE bigid BETWEEN 1 AND 483) AS page) [numPartitions=1] </b><br><br>number of output rows: 483"];
}
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=360453]
HashAggregate(keys=[], functions=[partial_count(1)])
WholeStageCodegen (1)
InMemoryTableScan
Scan JDBCRelation((SELECT * FROM dbo.fact_indirect_supplier_data WHERE bigid BETWEEN 1 AND 483) AS page) [numPartitions=1] [_id#10405081,supplier_uid#10405082,Cid#10405083,Name#10405084,short_name#10405085,Country#10405086,City#10405087,State#10405088,average_score#10405089,company_score#10405090,Email#10405091,company_type#10405092,company_status#10405093,chain#10405094,supplier_id#10405095,company_id#10405096,UID#10405097,T1_ID#10405098,T1_NAME#10405099,Status#10405100,created_by#10405101,InvitedBy#10405102,brandname#10405103,BrandId#10405104,... 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=502.8 KiB, rowCount=483)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_indirect_supplier_data WHERE bigid BETWEEN 1 AND 483) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_indirect_supplier_data WHERE bigid BETWEEN 1 AND 483) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [_id#10405081, supplier_uid#10405082, Cid#10405083, Name#10405084, short_name#10405085, Country#10405086, City#10405087, State#10405088, average_score#10405089, company_score#10405090, Email#10405091, company_type#10405092, company_status#10405093, chain#10405094, supplier_id#10405095, company_id#10405096, UID#10405097, T1_ID#10405098, T1_NAME#10405099, Status#10405100, created_by#10405101, InvitedBy#10405102, brandname#10405103, BrandId#10405104, ... 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_indirect_supplier_data WHERE bigid BETWEEN 1 AND 483) AS page) [numPartitions=1] [_id#10405081,supplier_uid#10405082,Cid#10405083,Name#10405084,short_name#10405085,Country#10405086,City#10405087,State#10405088,average_score#10405089,company_score#10405090,Email#10405091,company_type#10405092,company_status#10405093,chain#10405094,supplier_id#10405095,company_id#10405096,UID#10405097,T1_ID#10405098,T1_NAME#10405099,Status#10405100,created_by#10405101,InvitedBy#10405102,brandname#10405103,BrandId#10405104,... 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_indirect_supplier_data WHERE bigid BETWEEN 1 AND 483) AS page) [numPartitions=1] [codegen id : 1]
Output [53]: [_id#10405081, supplier_uid#10405082, Cid#10405083, Name#10405084, short_name#10405085, Country#10405086, City#10405087, State#10405088, average_score#10405089, company_score#10405090, Email#10405091, company_type#10405092, company_status#10405093, chain#10405094, supplier_id#10405095, company_id#10405096, UID#10405097, T1_ID#10405098, T1_NAME#10405099, Status#10405100, created_by#10405101, InvitedBy#10405102, brandname#10405103, BrandId#10405104, supplier_level#10405105, direct_supplier_level#10405106, InSupCount#10405107, facility_count#10405108, count_mid#10405109, brand_supplier_level#10405110, t1_supplier_mid#10405111, t1_company_mid#10405112, brand_t1_t1_mid#10405113, brand_t1_supplier_mid#10405114, brand_supplier_mid#10405115, generated_company_id#10405116L, generated_supplier_id#10405117L, generated_t1_id#10405118L, generated_brand_id#10405119L, t1_supplier_gid#10405120, t1_company_gid#10405121, brand_t1_t1_gid#10405122, brand_t1_supplier_gid#10405123, brand_supplier_gid#10405124, filter_value#10405125, latitude#10405126, longitude#10405127, source_city#10405128, source_country#10405129, source_latitude#10405130, source_longitude#10405131, etl_runtime#10405132, bigid#10405133L]
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#10406303L]
Results [1]: [count#10406304L]
(6) Exchange
Input [1]: [count#10406304L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=360453]
(7) ShuffleQueryStage
Output [1]: [count#10406304L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#10406304L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10405505L]
Results [1]: [count(1)#10405505L AS count#10405506L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10406303L]
Results [1]: [count#10406304L]
(10) Exchange
Input [1]: [count#10406304L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=359720]
(11) HashAggregate
Input [1]: [count#10406304L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10405505L]
Results [1]: [count(1)#10405505L AS count#10405506L]
(12) AdaptiveSparkPlan
Output [1]: [count#10405506L]
Arguments: isFinalPlan=true