== 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=1643.8 KiB, rowCount=1.13E+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#14936228, supplier_id#14936229, canonical_id#14936236, is_primary#14936237, entity_name#14936230, city#14936231, state#14936232, country#14936233, threshold#14936238, create_date#14936239], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@730ae8bf,StorageLevel(disk, memory, deserialized, 1 replicas),AdaptiveSparkPlan isFinalPlan=true
+- == Final Plan ==
*(1) Filter isnotnull(canonical_id#14936236)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#14936228, supplier_id#14936229, canonical_id#14936236, is_primary#14936237, entity_name#14936230, city#14936231, state#14936232, country#14936233, threshold#14936238, create_date#14936239], [isnotnull(canonical_id#14936236)]
+- InMemoryRelation [brand_context_id#14936228, supplier_id#14936229, entity_name#14936230, city#14936231, state#14936232, country#14936233, supplier_type#14936234, declaring_supplier_id#14936235, canonical_id#14936236, is_primary#14936237, threshold#14936238, create_date#14936239], 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#14936228,supplier_id#14936229,entity_name#14936230,city#14936231,state#14936232,country#14936233,supplier_type#14936234,declaring_supplier_id#14936235,canonical_id#14936236,is_primary#14936237,threshold#14936238,create_date#14936239] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#14936236)
+- InMemoryTableScan [brand_context_id#14936228, supplier_id#14936229, canonical_id#14936236, is_primary#14936237, entity_name#14936230, city#14936231, state#14936232, country#14936233, threshold#14936238, create_date#14936239], [isnotnull(canonical_id#14936236)]
+- InMemoryRelation [brand_context_id#14936228, supplier_id#14936229, entity_name#14936230, city#14936231, state#14936232, country#14936233, supplier_type#14936234, declaring_supplier_id#14936235, canonical_id#14936236, is_primary#14936237, threshold#14936238, create_date#14936239], 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#14936228,supplier_id#14936229,entity_name#14936230,city#14936231,state#14936232,country#14936233,supplier_type#14936234,declaring_supplier_id#14936235,canonical_id#14936236,is_primary#14936237,threshold#14936238,create_date#14936239] 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#14936228, supplier_id#14936229, canonical_id#14936236, is_primary#14936237, entity_name#14936230, city#14936231, state#14936232, country#14936233, threshold#14936238, create_date#14936239]
Arguments: [brand_context_id#14936228, supplier_id#14936229, canonical_id#14936236, is_primary#14936237, entity_name#14936230, city#14936231, state#14936232, country#14936233, threshold#14936238, create_date#14936239], [isnotnull(canonical_id#14936236)]
(4) InMemoryRelation
Arguments: [brand_context_id#14936228, supplier_id#14936229, entity_name#14936230, city#14936231, state#14936232, country#14936233, supplier_type#14936234, declaring_supplier_id#14936235, canonical_id#14936236, is_primary#14936237, threshold#14936238, create_date#14936239], 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#14936228,supplier_id#14936229,entity_name#14936230,city#14936231,state#14936232,country#14936233,supplier_type#14936234,declaring_supplier_id#14936235,canonical_id#14936236,is_primary#14936237,threshold#14936238,create_date#14936239] 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#14936228, supplier_id#14936229, entity_name#14936230, city#14936231, state#14936232, country#14936233, supplier_type#14936234, declaring_supplier_id#14936235, canonical_id#14936236, is_primary#14936237, threshold#14936238, create_date#14936239]
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#14936228, supplier_id#14936229, canonical_id#14936236, is_primary#14936237, entity_name#14936230, city#14936231, state#14936232, country#14936233, threshold#14936238, create_date#14936239]
Condition : isnotnull(canonical_id#14936236)
(7) AdaptiveSparkPlan
Output [10]: [brand_context_id#14936228, supplier_id#14936229, canonical_id#14936236, is_primary#14936237, entity_name#14936230, city#14936231, state#14936232, country#14936233, threshold#14936238, create_date#14936239]
Arguments: isFinalPlan=false
(8) TableCacheQueryStage
Output: []
Arguments: 0
(9) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#14938075L]
Results [1]: [count#14938076L]
(10) Exchange
Input [1]: [count#14938076L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4291525]
(11) ShuffleQueryStage
Output [1]: [count#14938076L]
Arguments: 1
(12) HashAggregate [codegen id : 2]
Input [1]: [count#14938076L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14937922L]
Results [1]: [count(1)#14937922L AS count#14937923L]
(13) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#14938075L]
Results [1]: [count#14938076L]
(14) Exchange
Input [1]: [count#14938076L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4291500]
(15) HashAggregate
Input [1]: [count#14938076L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14937922L]
Results [1]: [count(1)#14937922L AS count#14937923L]
(16) AdaptiveSparkPlan
Output [1]: [count#14937923L]
Arguments: isFinalPlan=true