== Physical Plan ==
AdaptiveSparkPlan (16)
+- == Final Plan ==
* HashAggregate (12)
+- ShuffleQueryStage (11), Statistics(sizeInBytes=16.0 B, rowCount=1)
+- Exchange (10)
+- * HashAggregate (9)
+- TableCacheQueryStage (8), Statistics(sizeInBytes=1640.2 KiB, rowCount=1.12E+4)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (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 (15)
+- Exchange (14)
+- HashAggregate (13)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (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#8983060, supplier_id#8983061, canonical_id#8983068, is_primary#8983069, entity_name#8983062, city#8983063, state#8983064, country#8983065, threshold#8983070, create_date#8983071], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@7795a5ad,StorageLevel(disk, memory, deserialized, 1 replicas),AdaptiveSparkPlan isFinalPlan=true
+- == Final Plan ==
*(1) Filter isnotnull(canonical_id#8983068)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#8983060, supplier_id#8983061, canonical_id#8983068, is_primary#8983069, entity_name#8983062, city#8983063, state#8983064, country#8983065, threshold#8983070, create_date#8983071], [isnotnull(canonical_id#8983068)]
+- InMemoryRelation [brand_context_id#8983060, supplier_id#8983061, entity_name#8983062, city#8983063, state#8983064, country#8983065, supplier_type#8983066, declaring_supplier_id#8983067, canonical_id#8983068, is_primary#8983069, threshold#8983070, create_date#8983071], 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#8983060,supplier_id#8983061,entity_name#8983062,city#8983063,state#8983064,country#8983065,supplier_type#8983066,declaring_supplier_id#8983067,canonical_id#8983068,is_primary#8983069,threshold#8983070,create_date#8983071] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#8983068)
+- InMemoryTableScan [brand_context_id#8983060, supplier_id#8983061, canonical_id#8983068, is_primary#8983069, entity_name#8983062, city#8983063, state#8983064, country#8983065, threshold#8983070, create_date#8983071], [isnotnull(canonical_id#8983068)]
+- InMemoryRelation [brand_context_id#8983060, supplier_id#8983061, entity_name#8983062, city#8983063, state#8983064, country#8983065, supplier_type#8983066, declaring_supplier_id#8983067, canonical_id#8983068, is_primary#8983069, threshold#8983070, create_date#8983071], 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#8983060,supplier_id#8983061,entity_name#8983062,city#8983063,state#8983064,country#8983065,supplier_type#8983066,declaring_supplier_id#8983067,canonical_id#8983068,is_primary#8983069,threshold#8983070,create_date#8983071] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(3) InMemoryTableScan
Output [10]: [brand_context_id#8983060, supplier_id#8983061, canonical_id#8983068, is_primary#8983069, entity_name#8983062, city#8983063, state#8983064, country#8983065, threshold#8983070, create_date#8983071]
Arguments: [brand_context_id#8983060, supplier_id#8983061, canonical_id#8983068, is_primary#8983069, entity_name#8983062, city#8983063, state#8983064, country#8983065, threshold#8983070, create_date#8983071], [isnotnull(canonical_id#8983068)]
(4) InMemoryRelation
Arguments: [brand_context_id#8983060, supplier_id#8983061, entity_name#8983062, city#8983063, state#8983064, country#8983065, supplier_type#8983066, declaring_supplier_id#8983067, canonical_id#8983068, is_primary#8983069, threshold#8983070, create_date#8983071], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@7795a5ad,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#8983060,supplier_id#8983061,entity_name#8983062,city#8983063,state#8983064,country#8983065,supplier_type#8983066,declaring_supplier_id#8983067,canonical_id#8983068,is_primary#8983069,threshold#8983070,create_date#8983071] 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#8983060, supplier_id#8983061, entity_name#8983062, city#8983063, state#8983064, country#8983065, supplier_type#8983066, declaring_supplier_id#8983067, canonical_id#8983068, is_primary#8983069, threshold#8983070, create_date#8983071]
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 [10]: [brand_context_id#8983060, supplier_id#8983061, canonical_id#8983068, is_primary#8983069, entity_name#8983062, city#8983063, state#8983064, country#8983065, threshold#8983070, create_date#8983071]
Condition : isnotnull(canonical_id#8983068)
(7) AdaptiveSparkPlan
Output [10]: [brand_context_id#8983060, supplier_id#8983061, canonical_id#8983068, is_primary#8983069, entity_name#8983062, city#8983063, state#8983064, country#8983065, threshold#8983070, create_date#8983071]
Arguments: isFinalPlan=false
(8) TableCacheQueryStage
Output: []
Arguments: 0
(9) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10395563L]
Results [1]: [count#10395564L]
(10) Exchange
Input [1]: [count#10395564L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=356098]
(11) ShuffleQueryStage
Output [1]: [count#10395564L]
Arguments: 1
(12) HashAggregate [codegen id : 2]
Input [1]: [count#10395564L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10395410L]
Results [1]: [count(1)#10395410L AS count#10395411L]
(13) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#10395563L]
Results [1]: [count#10395564L]
(14) Exchange
Input [1]: [count#10395564L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=356073]
(15) HashAggregate
Input [1]: [count#10395564L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#10395410L]
Results [1]: [count(1)#10395410L AS count#10395411L]
(16) AdaptiveSparkPlan
Output [1]: [count#10395411L]
Arguments: isFinalPlan=true