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 14339.0: task 31928))<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 14339.0: task 31928))<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 14339.0: task 31928))"];
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: 1,570"];
subgraph cluster7 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n187 ms (0 ms, 187 ms, 187 ms (stage 14333.0: task 31922))";
8 [labelType="html" label="<b>Scan JDBCRelation((SELECT * FROM dbo.FACT_SCM_req_details WHERE bigid BETWEEN 1 AND 1570) AS page) [numPartitions=1] </b><br><br>number of output rows: 1,570"];
}
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=369245]
HashAggregate(keys=[], functions=[partial_count(1)])
WholeStageCodegen (1)
InMemoryTableScan
Scan JDBCRelation((SELECT * FROM dbo.FACT_SCM_req_details WHERE bigid BETWEEN 1 AND 1570) AS page) [numPartitions=1] [rowno#10535812L,brandid#10535813,SCM Request Name#10535814,SCM Configuration#10535815,Recurrence Type#10535816,Recurrance Count#10535817,supplier_ids#10535818,Launch date#10535819,request_status#10535820,reference_code#10535821,Supplier#10535822,Expiration Date#10535823,Submission Status#10535824,Submitted Date#10535825,revision_version#10535826,entity_id#10535827,launch_req_update_ts#10535828,res_summary_update_ts#10535829,MappingPercent#10535830,Tier 1 - % #10535831,T1-Supplier Count#10535832,T1 - Facility Count#10535833,Tier 2 - % #10535834,T2-Supplier Count#10535835,... 24 more fields] PushedFilters: [], ReadSchema: struct<rowno:bigint,brandid:string,SCM Request Name:string,SCM Configuration:string,Recurrence Ty...
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=630.9 KiB, rowCount=1.57E+3)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.FACT_SCM_req_details WHERE bigid BETWEEN 1 AND 1570) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.FACT_SCM_req_details WHERE bigid BETWEEN 1 AND 1570) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [rowno#10535812L, brandid#10535813, SCM Request Name#10535814, SCM Configuration#10535815, Recurrence Type#10535816, Recurrance Count#10535817, supplier_ids#10535818, Launch date#10535819, request_status#10535820, reference_code#10535821, Supplier#10535822, Expiration Date#10535823, Submission Status#10535824, Submitted Date#10535825, revision_version#10535826, entity_id#10535827, launch_req_update_ts#10535828, res_summary_update_ts#10535829, MappingPercent#10535830, Tier 1 - % #10535831, T1-Supplier Count#10535832, T1 - Facility Count#10535833, Tier 2 - % #10535834, T2-Supplier Count#10535835, ... 24 more fields], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@7795a5ad,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Scan JDBCRelation((SELECT * FROM dbo.FACT_SCM_req_details WHERE bigid BETWEEN 1 AND 1570) AS page) [numPartitions=1] [rowno#10535812L,brandid#10535813,SCM Request Name#10535814,SCM Configuration#10535815,Recurrence Type#10535816,Recurrance Count#10535817,supplier_ids#10535818,Launch date#10535819,request_status#10535820,reference_code#10535821,Supplier#10535822,Expiration Date#10535823,Submission Status#10535824,Submitted Date#10535825,revision_version#10535826,entity_id#10535827,launch_req_update_ts#10535828,res_summary_update_ts#10535829,MappingPercent#10535830,Tier 1 - % #10535831,T1-Supplier Count#10535832,T1 - Facility Count#10535833,Tier 2 - % #10535834,T2-Supplier Count#10535835,... 24 more fields] PushedFilters: [], ReadSchema: struct<rowno:bigint,brandid:string,SCM Request Name:string,SCM Configuration:string,Recurrence Ty...
,None)
(3) Scan JDBCRelation((SELECT * FROM dbo.FACT_SCM_req_details WHERE bigid BETWEEN 1 AND 1570) AS page) [numPartitions=1] [codegen id : 1]
Output [48]: [rowno#10535812L, brandid#10535813, SCM Request Name#10535814, SCM Configuration#10535815, Recurrence Type#10535816, Recurrance Count#10535817, supplier_ids#10535818, Launch date#10535819, request_status#10535820, reference_code#10535821, Supplier#10535822, Expiration Date#10535823, Submission Status#10535824, Submitted Date#10535825, revision_version#10535826, entity_id#10535827, launch_req_update_ts#10535828, res_summary_update_ts#10535829, MappingPercent#10535830, Tier 1 - % #10535831, T1-Supplier Count#10535832, T1 - Facility Count#10535833, Tier 2 - % #10535834, T2-Supplier Count#10535835, T2 - Facility Count#10535836, Tier 3 - % #10535837, T3-Supplier Count#10535838, T3 - Facility Count#10535839, Tier 4 - % #10535840, T4-Supplier Count#10535841, T4 - Facility Count#10535842, Tier 5 - % #10535843, T5-Supplier Count#10535844, T5 - Facility Count#10535845, Tier 6 - % #10535846, T6-Supplier Count#10535847, T6 - Facility Count#10535848, Tier 7 - % #10535849, T7-Supplier Count#10535850, T7 - Facility Count#10535851, SupplierUID#10535852, Supplier country#10535853, Unique Suppliers#10535854, Unique Facilities#10535855, bigid#10535856, Locked#10535857, Revision Requested#10535858, Edit Requested#10535859]
ReadSchema: struct<rowno:bigint,brandid:string,SCM Request Name:string,SCM Configuration:string,Recurrence Type:string,Recurrance Count:int,supplier_ids:string,Launch date:date,request_status:string,reference_code:string,Supplier:string,Expiration Date:date,Submission Status:string,Submitted Date:date,revision_version:string,entity_id:string,launch_req_update_ts:string,res_summary_update_ts:string,MappingPercent:decimal(10,2),Tier 1 - % :decimal(10,2),T1-Supplier Count:int,T1 - Facility Count:int,Tier 2 - % :decimal(10,2),T2-Supplier Count:int,T2 - Facility Count:int,Tier 3 - % :decimal(10,2),T3-Supplier Count:int,T3 - Facility Count:int,Tier 4 - % :decimal(10,2),T4-Supplier Count:int,T4 - Facility Count:int,Tier 5 - % :decimal(10,2),T5-Supplier Count:int,T5 - Facility Count:int,Tier 6 - % :decimal(10,2),T6-Supplier Count:int,T6 - Facility Count:int,Tier 7 - % :decimal(10,2),T7-Supplier Count:int,T7 - Facility Count:int,SupplierUID:string,Supplier country:string,Unique Suppliers:int,Unique Facilities:int,bigid:int,Locked:string,Revision Requested:string,Edit Requested:string>
(4) TableCacheQueryStage
Output: []
Arguments: 0
(5) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10536919L]
Results [1]: [count#10536920L]
(6) Exchange
Input [1]: [count#10536920L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=369245]
(7) ShuffleQueryStage
Output [1]: [count#10536920L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#10536920L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10536196L]
Results [1]: [count(1)#10536196L AS count#10536197L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10536919L]
Results [1]: [count#10536920L]
(10) Exchange
Input [1]: [count#10536920L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=369132]
(11) HashAggregate
Input [1]: [count#10536920L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10536196L]
Results [1]: [count(1)#10536196L AS count#10536197L]
(12) AdaptiveSparkPlan
Output [1]: [count#10536197L]
Arguments: isFinalPlan=true