== Physical Plan ==
AdaptiveSparkPlan (17)
+- == Final Plan ==
* HashAggregate (13)
+- ShuffleQueryStage (12), Statistics(sizeInBytes=16.0 B, rowCount=1)
+- Exchange (11)
+- * HashAggregate (10)
+- TableCacheQueryStage (9), Statistics(sizeInBytes=1397.0 B, rowCount=8)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (8)
+- Project (7)
+- Filter (6)
+- InMemoryTableScan (3)
+- InMemoryRelation (4)
+- * Scan JDBCRelation((
SELECT DISTINCT
v.brand_context_id,
v.supplier_id,
v.entity_name,
v.city,
v.state,
v.country,
v.supplier_type,
v.declaring_supplier_id,
v.canonical_id,
v.is_primary,
COALESCE(v.threshold, 0.9) AS threshold,
v.create_date
FROM vw_all_suppliers_for_dedup v
) AS all_suppliers) [numPartitions=1] (5)
+- == Initial Plan ==
HashAggregate (16)
+- Exchange (15)
+- HashAggregate (14)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (8)
+- Project (7)
+- Filter (6)
+- InMemoryTableScan (3)
+- InMemoryRelation (4)
+- * Scan JDBCRelation((
SELECT DISTINCT
v.brand_context_id,
v.supplier_id,
v.entity_name,
v.city,
v.state,
v.country,
v.supplier_type,
v.declaring_supplier_id,
v.canonical_id,
v.is_primary,
COALESCE(v.threshold, 0.9) AS threshold,
v.create_date
FROM vw_all_suppliers_for_dedup v
) AS all_suppliers) [numPartitions=1] (5)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, threshold#18144936, create_date#18144937], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@730ae8bf,StorageLevel(disk, memory, deserialized, 1 replicas),AdaptiveSparkPlan isFinalPlan=true
+- == Final Plan ==
*(1) Project [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, threshold#18144936, create_date#18144937]
+- *(1) Filter isnull(canonical_id#18144934)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#18144926, canonical_id#18144934, city#18144929, country#18144931, create_date#18144937, declaring_supplier_id#18144933, entity_name#18144928, state#18144930, supplier_id#18144927, supplier_type#18144932, threshold#18144936], [isnull(canonical_id#18144934)]
+- InMemoryRelation [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, canonical_id#18144934, is_primary#18144935, threshold#18144936, create_date#18144937], StorageLevel(disk, memory, deserialized, 1 replicas)
+- *(1) Scan JDBCRelation((
SELECT DISTINCT
v.brand_context_id,
v.supplier_id,
v.entity_name,
v.city,
v.state,
v.country,
v.supplier_type,
v.declaring_supplier_id,
v.canonical_id,
v.is_primary,
COALESCE(v.threshold, 0.9) AS threshold,
v.create_date
FROM vw_all_suppliers_for_dedup v
) AS all_suppliers) [numPartitions=1] [brand_context_id#18144926,supplier_id#18144927,entity_name#18144928,city#18144929,state#18144930,country#18144931,supplier_type#18144932,declaring_supplier_id#18144933,canonical_id#18144934,is_primary#18144935,threshold#18144936,create_date#18144937] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, threshold#18144936, create_date#18144937]
+- Filter isnull(canonical_id#18144934)
+- InMemoryTableScan [brand_context_id#18144926, canonical_id#18144934, city#18144929, country#18144931, create_date#18144937, declaring_supplier_id#18144933, entity_name#18144928, state#18144930, supplier_id#18144927, supplier_type#18144932, threshold#18144936], [isnull(canonical_id#18144934)]
+- InMemoryRelation [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, canonical_id#18144934, is_primary#18144935, threshold#18144936, create_date#18144937], StorageLevel(disk, memory, deserialized, 1 replicas)
+- *(1) Scan JDBCRelation((
SELECT DISTINCT
v.brand_context_id,
v.supplier_id,
v.entity_name,
v.city,
v.state,
v.country,
v.supplier_type,
v.declaring_supplier_id,
v.canonical_id,
v.is_primary,
COALESCE(v.threshold, 0.9) AS threshold,
v.create_date
FROM vw_all_suppliers_for_dedup v
) AS all_suppliers) [numPartitions=1] [brand_context_id#18144926,supplier_id#18144927,entity_name#18144928,city#18144929,state#18144930,country#18144931,supplier_type#18144932,declaring_supplier_id#18144933,canonical_id#18144934,is_primary#18144935,threshold#18144936,create_date#18144937] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(3) InMemoryTableScan
Output [11]: [brand_context_id#18144926, canonical_id#18144934, city#18144929, country#18144931, create_date#18144937, declaring_supplier_id#18144933, entity_name#18144928, state#18144930, supplier_id#18144927, supplier_type#18144932, threshold#18144936]
Arguments: [brand_context_id#18144926, canonical_id#18144934, city#18144929, country#18144931, create_date#18144937, declaring_supplier_id#18144933, entity_name#18144928, state#18144930, supplier_id#18144927, supplier_type#18144932, threshold#18144936], [isnull(canonical_id#18144934)]
(4) InMemoryRelation
Arguments: [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, canonical_id#18144934, is_primary#18144935, threshold#18144936, create_date#18144937], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@730ae8bf,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Scan JDBCRelation((
SELECT DISTINCT
v.brand_context_id,
v.supplier_id,
v.entity_name,
v.city,
v.state,
v.country,
v.supplier_type,
v.declaring_supplier_id,
v.canonical_id,
v.is_primary,
COALESCE(v.threshold, 0.9) AS threshold,
v.create_date
FROM vw_all_suppliers_for_dedup v
) AS all_suppliers) [numPartitions=1] [brand_context_id#18144926,supplier_id#18144927,entity_name#18144928,city#18144929,state#18144930,country#18144931,supplier_type#18144932,declaring_supplier_id#18144933,canonical_id#18144934,is_primary#18144935,threshold#18144936,create_date#18144937] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(5) Scan JDBCRelation((
SELECT DISTINCT
v.brand_context_id,
v.supplier_id,
v.entity_name,
v.city,
v.state,
v.country,
v.supplier_type,
v.declaring_supplier_id,
v.canonical_id,
v.is_primary,
COALESCE(v.threshold, 0.9) AS threshold,
v.create_date
FROM vw_all_suppliers_for_dedup v
) AS all_suppliers) [numPartitions=1] [codegen id : 1]
Output [12]: [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, canonical_id#18144934, is_primary#18144935, threshold#18144936, create_date#18144937]
ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,country:string,supplier_type:string,declaring_supplier_id:string,canonical_id:string,is_primary:boolean,threshold:double,create_date:date>
(6) Filter
Input [11]: [brand_context_id#18144926, canonical_id#18144934, city#18144929, country#18144931, create_date#18144937, declaring_supplier_id#18144933, entity_name#18144928, state#18144930, supplier_id#18144927, supplier_type#18144932, threshold#18144936]
Condition : isnull(canonical_id#18144934)
(7) Project
Output [10]: [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, threshold#18144936, create_date#18144937]
Input [11]: [brand_context_id#18144926, canonical_id#18144934, city#18144929, country#18144931, create_date#18144937, declaring_supplier_id#18144933, entity_name#18144928, state#18144930, supplier_id#18144927, supplier_type#18144932, threshold#18144936]
(8) AdaptiveSparkPlan
Output [10]: [brand_context_id#18144926, supplier_id#18144927, entity_name#18144928, city#18144929, state#18144930, country#18144931, supplier_type#18144932, declaring_supplier_id#18144933, threshold#18144936, create_date#18144937]
Arguments: isFinalPlan=false
(9) TableCacheQueryStage
Output: []
Arguments: 0
(10) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#18145970L]
Results [1]: [count#18145971L]
(11) Exchange
Input [1]: [count#18145971L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4619766]
(12) ShuffleQueryStage
Output [1]: [count#18145971L]
Arguments: 1
(13) HashAggregate [codegen id : 2]
Input [1]: [count#18145971L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#18145817L]
Results [1]: [count(1)#18145817L AS count#18145818L]
(14) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#18145970L]
Results [1]: [count#18145971L]
(15) Exchange
Input [1]: [count#18145971L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4619733]
(16) HashAggregate
Input [1]: [count#18145971L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#18145817L]
Results [1]: [count(1)#18145817L AS count#18145818L]
(17) AdaptiveSparkPlan
Output [1]: [count#18145818L]
Arguments: isFinalPlan=true