== 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=15.6 KiB, rowCount=329)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation(dbo.ForcedLabour_CBP) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation(dbo.ForcedLabour_CBP) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [Entity Name#20598831, Effective Date#20598832, Last Refreshed Date#20598833], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@14de14ab,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Scan JDBCRelation(dbo.ForcedLabour_CBP) [numPartitions=1] [Entity Name#20598831,Effective Date#20598832,Last Refreshed Date#20598833] PushedFilters: [], ReadSchema: struct<Entity Name:string,Effective Date:date,Last Refreshed Date:date>
,None)
(3) Scan JDBCRelation(dbo.ForcedLabour_CBP) [numPartitions=1] [codegen id : 1]
Output [3]: [Entity Name#20598831, Effective Date#20598832, Last Refreshed Date#20598833]
ReadSchema: struct<Entity Name:string,Effective Date:date,Last Refreshed Date:date>
(4) TableCacheQueryStage
Output: []
Arguments: 0
(5) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#20598909L]
Results [1]: [count#20598910L]
(6) Exchange
Input [1]: [count#20598910L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=3344439]
(7) ShuffleQueryStage
Output [1]: [count#20598910L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#20598910L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#20598861L]
Results [1]: [count(1)#20598861L AS count#20598862L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#20598909L]
Results [1]: [count#20598910L]
(10) Exchange
Input [1]: [count#20598910L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=3344405]
(11) HashAggregate
Input [1]: [count#20598910L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#20598861L]
Results [1]: [count(1)#20598861L AS count#20598862L]
(12) AdaptiveSparkPlan
Output [1]: [count#20598862L]
Arguments: isFinalPlan=true