== Physical Plan ==
AdaptiveSparkPlan (17)
+- == Final Plan ==
* HashAggregate (5)
+- ShuffleQueryStage (4), Statistics(sizeInBytes=0.0 B, rowCount=0)
+- Exchange (3)
+- * HashAggregate (2)
+- * LocalTableScan (1)
+- == Initial Plan ==
HashAggregate (16)
+- Exchange (15)
+- HashAggregate (14)
+- InMemoryTableScan (6)
+- InMemoryRelation (7)
+- AdaptiveSparkPlan (13)
+- Project (12)
+- Filter (11)
+- InMemoryTableScan (8)
+- InMemoryRelation (9)
+- * 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] (10)
(1) LocalTableScan [codegen id : 1]
Output: []
Arguments: <empty>
(2) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#258690L]
Results [1]: [count#258691L]
(3) Exchange
Input [1]: [count#258691L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=11901]
(4) ShuffleQueryStage
Output [1]: [count#258691L]
Arguments: 1
(5) HashAggregate [codegen id : 2]
Input [1]: [count#258691L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#258537L]
Results [1]: [count(1)#258537L AS count#258538L]
(6) InMemoryTableScan
Output: []
(7) InMemoryRelation
Arguments: [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, threshold#257656, create_date#257657], 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#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, threshold#257656, create_date#257657]
+- *(1) Filter isnull(canonical_id#257654)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#257646, canonical_id#257654, city#257649, country#257651, create_date#257657, declaring_supplier_id#257653, entity_name#257648, state#257650, supplier_id#257647, supplier_type#257652, threshold#257656], [isnull(canonical_id#257654)]
+- InMemoryRelation [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, canonical_id#257654, is_primary#257655, threshold#257656, create_date#257657], 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#257646,supplier_id#257647,entity_name#257648,city#257649,state#257650,country#257651,supplier_type#257652,declaring_supplier_id#257653,canonical_id#257654,is_primary#257655,threshold#257656,create_date#257657] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, threshold#257656, create_date#257657]
+- Filter isnull(canonical_id#257654)
+- InMemoryTableScan [brand_context_id#257646, canonical_id#257654, city#257649, country#257651, create_date#257657, declaring_supplier_id#257653, entity_name#257648, state#257650, supplier_id#257647, supplier_type#257652, threshold#257656], [isnull(canonical_id#257654)]
+- InMemoryRelation [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, canonical_id#257654, is_primary#257655, threshold#257656, create_date#257657], 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#257646,supplier_id#257647,entity_name#257648,city#257649,state#257650,country#257651,supplier_type#257652,declaring_supplier_id#257653,canonical_id#257654,is_primary#257655,threshold#257656,create_date#257657] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(8) InMemoryTableScan
Output [11]: [brand_context_id#257646, canonical_id#257654, city#257649, country#257651, create_date#257657, declaring_supplier_id#257653, entity_name#257648, state#257650, supplier_id#257647, supplier_type#257652, threshold#257656]
Arguments: [brand_context_id#257646, canonical_id#257654, city#257649, country#257651, create_date#257657, declaring_supplier_id#257653, entity_name#257648, state#257650, supplier_id#257647, supplier_type#257652, threshold#257656], [isnull(canonical_id#257654)]
(9) InMemoryRelation
Arguments: [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, canonical_id#257654, is_primary#257655, threshold#257656, create_date#257657], 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#257646,supplier_id#257647,entity_name#257648,city#257649,state#257650,country#257651,supplier_type#257652,declaring_supplier_id#257653,canonical_id#257654,is_primary#257655,threshold#257656,create_date#257657] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(10) 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]
Output [12]: [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, canonical_id#257654, is_primary#257655, threshold#257656, create_date#257657]
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>
(11) Filter
Input [11]: [brand_context_id#257646, canonical_id#257654, city#257649, country#257651, create_date#257657, declaring_supplier_id#257653, entity_name#257648, state#257650, supplier_id#257647, supplier_type#257652, threshold#257656]
Condition : isnull(canonical_id#257654)
(12) Project
Output [10]: [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, threshold#257656, create_date#257657]
Input [11]: [brand_context_id#257646, canonical_id#257654, city#257649, country#257651, create_date#257657, declaring_supplier_id#257653, entity_name#257648, state#257650, supplier_id#257647, supplier_type#257652, threshold#257656]
(13) AdaptiveSparkPlan
Output [10]: [brand_context_id#257646, supplier_id#257647, entity_name#257648, city#257649, state#257650, country#257651, supplier_type#257652, declaring_supplier_id#257653, threshold#257656, create_date#257657]
Arguments: isFinalPlan=false
(14) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#258690L]
Results [1]: [count#258691L]
(15) Exchange
Input [1]: [count#258691L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=11869]
(16) HashAggregate
Input [1]: [count#258691L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#258537L]
Results [1]: [count(1)#258537L AS count#258538L]
(17) AdaptiveSparkPlan
Output [1]: [count#258538L]
Arguments: isFinalPlan=true