== Physical Plan ==
AdaptiveSparkPlan (154)
+- == Final Plan ==
* HashAggregate (150)
+- ShuffleQueryStage (149), Statistics(sizeInBytes=336.0 B, rowCount=21)
+- Exchange (148)
+- * HashAggregate (147)
+- TableCacheQueryStage (146), Statistics(sizeInBytes=359.0 B, rowCount=2)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (145)
+- Union (144)
:- Project (23)
: +- BroadcastHashJoin Inner BuildLeft (22)
: :- BroadcastExchange (12)
: : +- Filter (11)
: : +- InMemoryTableScan (3)
: : +- InMemoryRelation (4)
: : +- AdaptiveSparkPlan (10)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Project (21)
: +- Filter (20)
: +- InMemoryTableScan (13)
: +- InMemoryRelation (14)
: +- AdaptiveSparkPlan (19)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
:- Project (72)
: +- Filter (71)
: +- Window (70)
: +- WindowGroupLimit (69)
: +- Sort (68)
: +- Exchange (67)
: +- WindowGroupLimit (66)
: +- Sort (65)
: +- Project (64)
: +- BatchEvalPython (63)
: +- Project (62)
: +- Filter (61)
: +- BatchEvalPython (60)
: +- Project (59)
: +- BroadcastHashJoin Inner BuildLeft (58)
: :- BroadcastExchange (51)
: : +- Project (50)
: : +- SortMergeJoin LeftAnti (49)
: : :- Sort (34)
: : : +- Exchange (33)
: : : +- Project (32)
: : : +- BatchEvalPython (31)
: : : +- Project (30)
: : : +- Filter (29)
: : : +- BatchEvalPython (28)
: : : +- Filter (27)
: : : +- InMemoryTableScan (24)
: : : +- InMemoryRelation (25)
: : : +- AdaptiveSparkPlan (26)
: : : +- Project (9)
: : : +- Filter (8)
: : : +- InMemoryTableScan (5)
: : : +- InMemoryRelation (6)
: : : +- * 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] (7)
: : +- Sort (48)
: : +- Exchange (47)
: : +- Project (46)
: : +- BroadcastHashJoin Inner BuildLeft (45)
: : :- BroadcastExchange (39)
: : : +- Filter (38)
: : : +- InMemoryTableScan (35)
: : : +- InMemoryRelation (36)
: : : +- AdaptiveSparkPlan (37)
: : : +- Project (9)
: : : +- Filter (8)
: : : +- InMemoryTableScan (5)
: : : +- InMemoryRelation (6)
: : : +- * 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] (7)
: : +- Project (44)
: : +- Filter (43)
: : +- InMemoryTableScan (40)
: : +- InMemoryRelation (41)
: : +- AdaptiveSparkPlan (42)
: : +- Filter (18)
: : +- InMemoryTableScan (15)
: : +- InMemoryRelation (16)
: : +- * 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] (17)
: +- Project (57)
: +- BatchEvalPython (56)
: +- Filter (55)
: +- InMemoryTableScan (52)
: +- InMemoryRelation (53)
: +- AdaptiveSparkPlan (54)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
+- Project (143)
+- SortMergeJoin LeftAnti (142)
:- SortMergeJoin LeftAnti (92)
: :- Sort (77)
: : +- Exchange (76)
: : +- InMemoryTableScan (73)
: : +- InMemoryRelation (74)
: : +- AdaptiveSparkPlan (75)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Sort (91)
: +- Exchange (90)
: +- Project (89)
: +- BroadcastHashJoin Inner BuildLeft (88)
: :- BroadcastExchange (82)
: : +- Filter (81)
: : +- InMemoryTableScan (78)
: : +- InMemoryRelation (79)
: : +- AdaptiveSparkPlan (80)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Project (87)
: +- Filter (86)
: +- InMemoryTableScan (83)
: +- InMemoryRelation (84)
: +- AdaptiveSparkPlan (85)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
+- Project (141)
+- Filter (140)
+- Window (139)
+- WindowGroupLimit (138)
+- Sort (137)
+- Exchange (136)
+- WindowGroupLimit (135)
+- Sort (134)
+- Project (133)
+- BatchEvalPython (132)
+- Project (131)
+- Filter (130)
+- BatchEvalPython (129)
+- Project (128)
+- BroadcastHashJoin Inner BuildLeft (127)
:- BroadcastExchange (120)
: +- Project (119)
: +- SortMergeJoin LeftAnti (118)
: :- Sort (103)
: : +- Exchange (102)
: : +- Project (101)
: : +- BatchEvalPython (100)
: : +- Project (99)
: : +- Filter (98)
: : +- BatchEvalPython (97)
: : +- Filter (96)
: : +- InMemoryTableScan (93)
: : +- InMemoryRelation (94)
: : +- AdaptiveSparkPlan (95)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Sort (117)
: +- Exchange (116)
: +- Project (115)
: +- BroadcastHashJoin Inner BuildLeft (114)
: :- BroadcastExchange (108)
: : +- Filter (107)
: : +- InMemoryTableScan (104)
: : +- InMemoryRelation (105)
: : +- AdaptiveSparkPlan (106)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Project (113)
: +- Filter (112)
: +- InMemoryTableScan (109)
: +- InMemoryRelation (110)
: +- AdaptiveSparkPlan (111)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
+- Project (126)
+- BatchEvalPython (125)
+- Filter (124)
+- InMemoryTableScan (121)
+- InMemoryRelation (122)
+- AdaptiveSparkPlan (123)
+- Filter (18)
+- InMemoryTableScan (15)
+- InMemoryRelation (16)
+- * 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] (17)
+- == Initial Plan ==
HashAggregate (153)
+- Exchange (152)
+- HashAggregate (151)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (145)
+- Union (144)
:- Project (23)
: +- BroadcastHashJoin Inner BuildLeft (22)
: :- BroadcastExchange (12)
: : +- Filter (11)
: : +- InMemoryTableScan (3)
: : +- InMemoryRelation (4)
: : +- AdaptiveSparkPlan (10)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Project (21)
: +- Filter (20)
: +- InMemoryTableScan (13)
: +- InMemoryRelation (14)
: +- AdaptiveSparkPlan (19)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
:- Project (72)
: +- Filter (71)
: +- Window (70)
: +- WindowGroupLimit (69)
: +- Sort (68)
: +- Exchange (67)
: +- WindowGroupLimit (66)
: +- Sort (65)
: +- Project (64)
: +- BatchEvalPython (63)
: +- Project (62)
: +- Filter (61)
: +- BatchEvalPython (60)
: +- Project (59)
: +- BroadcastHashJoin Inner BuildLeft (58)
: :- BroadcastExchange (51)
: : +- Project (50)
: : +- SortMergeJoin LeftAnti (49)
: : :- Sort (34)
: : : +- Exchange (33)
: : : +- Project (32)
: : : +- BatchEvalPython (31)
: : : +- Project (30)
: : : +- Filter (29)
: : : +- BatchEvalPython (28)
: : : +- Filter (27)
: : : +- InMemoryTableScan (24)
: : : +- InMemoryRelation (25)
: : : +- AdaptiveSparkPlan (26)
: : : +- Project (9)
: : : +- Filter (8)
: : : +- InMemoryTableScan (5)
: : : +- InMemoryRelation (6)
: : : +- * 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] (7)
: : +- Sort (48)
: : +- Exchange (47)
: : +- Project (46)
: : +- BroadcastHashJoin Inner BuildLeft (45)
: : :- BroadcastExchange (39)
: : : +- Filter (38)
: : : +- InMemoryTableScan (35)
: : : +- InMemoryRelation (36)
: : : +- AdaptiveSparkPlan (37)
: : : +- Project (9)
: : : +- Filter (8)
: : : +- InMemoryTableScan (5)
: : : +- InMemoryRelation (6)
: : : +- * 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] (7)
: : +- Project (44)
: : +- Filter (43)
: : +- InMemoryTableScan (40)
: : +- InMemoryRelation (41)
: : +- AdaptiveSparkPlan (42)
: : +- Filter (18)
: : +- InMemoryTableScan (15)
: : +- InMemoryRelation (16)
: : +- * 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] (17)
: +- Project (57)
: +- BatchEvalPython (56)
: +- Filter (55)
: +- InMemoryTableScan (52)
: +- InMemoryRelation (53)
: +- AdaptiveSparkPlan (54)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
+- Project (143)
+- SortMergeJoin LeftAnti (142)
:- SortMergeJoin LeftAnti (92)
: :- Sort (77)
: : +- Exchange (76)
: : +- InMemoryTableScan (73)
: : +- InMemoryRelation (74)
: : +- AdaptiveSparkPlan (75)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Sort (91)
: +- Exchange (90)
: +- Project (89)
: +- BroadcastHashJoin Inner BuildLeft (88)
: :- BroadcastExchange (82)
: : +- Filter (81)
: : +- InMemoryTableScan (78)
: : +- InMemoryRelation (79)
: : +- AdaptiveSparkPlan (80)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Project (87)
: +- Filter (86)
: +- InMemoryTableScan (83)
: +- InMemoryRelation (84)
: +- AdaptiveSparkPlan (85)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
+- Project (141)
+- Filter (140)
+- Window (139)
+- WindowGroupLimit (138)
+- Sort (137)
+- Exchange (136)
+- WindowGroupLimit (135)
+- Sort (134)
+- Project (133)
+- BatchEvalPython (132)
+- Project (131)
+- Filter (130)
+- BatchEvalPython (129)
+- Project (128)
+- BroadcastHashJoin Inner BuildLeft (127)
:- BroadcastExchange (120)
: +- Project (119)
: +- SortMergeJoin LeftAnti (118)
: :- Sort (103)
: : +- Exchange (102)
: : +- Project (101)
: : +- BatchEvalPython (100)
: : +- Project (99)
: : +- Filter (98)
: : +- BatchEvalPython (97)
: : +- Filter (96)
: : +- InMemoryTableScan (93)
: : +- InMemoryRelation (94)
: : +- AdaptiveSparkPlan (95)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Sort (117)
: +- Exchange (116)
: +- Project (115)
: +- BroadcastHashJoin Inner BuildLeft (114)
: :- BroadcastExchange (108)
: : +- Filter (107)
: : +- InMemoryTableScan (104)
: : +- InMemoryRelation (105)
: : +- AdaptiveSparkPlan (106)
: : +- Project (9)
: : +- Filter (8)
: : +- InMemoryTableScan (5)
: : +- InMemoryRelation (6)
: : +- * 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] (7)
: +- Project (113)
: +- Filter (112)
: +- InMemoryTableScan (109)
: +- InMemoryRelation (110)
: +- AdaptiveSparkPlan (111)
: +- Filter (18)
: +- InMemoryTableScan (15)
: +- InMemoryRelation (16)
: +- * 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] (17)
+- Project (126)
+- BatchEvalPython (125)
+- Filter (124)
+- InMemoryTableScan (121)
+- InMemoryRelation (122)
+- AdaptiveSparkPlan (123)
+- Filter (18)
+- InMemoryTableScan (15)
+- InMemoryRelation (16)
+- * 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] (17)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [brand_context_id#15516344, supplier_id#15516345, declaring_supplier_id#15516351, supplier_type#15516350, canonical_id#15518301, is_primary#15518365, configured_threshold#15518366, match_percentage#15518367, confidence_score#15518368, match_reason#15518369], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@730ae8bf,StorageLevel(disk, memory, deserialized, 1 replicas),AdaptiveSparkPlan isFinalPlan=true
+- == Final Plan ==
Union
:- *(26) Project [brand_context_id#15516344, supplier_id#15516345, declaring_supplier_id#15516351, supplier_type#15516350, canonical_id#15518301, 0 AS is_primary#15518365, threshold#15516354 AS configured_threshold#15518366, 100.0 AS match_percentage#15518367, 1.0 AS confidence_score#15518368, exact_id_match AS match_reason#15518369]
: +- *(26) BroadcastHashJoin [brand_context_id#15516344, supplier_id#15516345], [brand_context_id#15518293, supplier_id#15518294], Inner, BuildLeft, false
: :- BroadcastQueryStage 13
: : +- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4321819]
: : +- *(1) Filter (isnotnull(brand_context_id#15516344) AND isnotnull(supplier_id#15516345))
: : +- TableCacheQueryStage 0
: : +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354], [isnotnull(brand_context_id#15516344), isnotnull(supplier_id#15516345)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : +- Filter isnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- *(26) Project [brand_context_id#15518293, supplier_id#15518294, canonical_id#15518301]
: +- *(26) Filter ((((isnotnull(is_primary#15518302) AND is_primary#15518302) AND isnotnull(canonical_id#15518301)) AND isnotnull(brand_context_id#15518293)) AND isnotnull(supplier_id#15518294))
: +- TableCacheQueryStage 1
: +- InMemoryTableScan [brand_context_id#15518293, canonical_id#15518301, is_primary#15518302, supplier_id#15518294], [isnotnull(is_primary#15518302), is_primary#15518302, isnotnull(canonical_id#15518301), isnotnull(brand_context_id#15518293), isnotnull(supplier_id#15518294)]
: +- InMemoryRelation [brand_context_id#15518293, supplier_id#15518294, canonical_id#15518301, is_primary#15518302, entity_name#15518295, city#15518296, state#15518297, country#15518298, threshold#15518303, create_date#15518304], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Filter isnotnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
:- *(28) Project [u_brand_context_id#15518409 AS brand_context_id#15518530, u_supplier_id#15518410 AS supplier_id#15518531, u_declaring_supplier_id#15518411 AS declaring_supplier_id#15518532, u_supplier_type#15518412 AS supplier_type#15518533, e_canonical_id#15518433 AS canonical_id#15518534, 0 AS is_primary#15518535, u_threshold#15518413 AS configured_threshold#15518536, cast((similarity#15518490 * 100.0) as double) AS match_percentage#15518643, cast(similarity#15518490 as double) AS confidence_score#15518644, matched_existing AS match_reason#15518539]
: +- *(28) Filter (rank#15518510 = 1)
: +- Window [row_number() windowspecdefinition(u_brand_context_id#15518409, u_supplier_id#15518410, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS rank#15518510], [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST]
: +- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Final
: +- *(27) Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
: +- ShuffleQueryStage 25
: +- Exchange hashpartitioning(u_brand_context_id#15518409, u_supplier_id#15518410, 10), ENSURE_REQUIREMENTS, [plan_id=4324673]
: +- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Partial
: +- *(19) Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
: +- *(19) Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, pythonUDF0#15520025 AS similarity#15518490]
: +- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520025]
: +- *(18) Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
: +- *(18) Filter (cast(pythonUDF0#15520024 as double) >= u_threshold#15518413)
: +- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520024]
: +- *(17) Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
: +- *(17) BroadcastHashJoin [u_brand_context_id#15518409, u_location_key#15518418], [e_brand_context_id#15518431, e_location_key#15518435], Inner, BuildLeft, false
: :- BroadcastQueryStage 23
: : +- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[6, string, false]),false), [plan_id=4324018]
: : +- *(14) Project [brand_context_id#15518619 AS u_brand_context_id#15518409, supplier_id#15518620 AS u_supplier_id#15518410, declaring_supplier_id#15518626 AS u_declaring_supplier_id#15518411, supplier_type#15518625 AS u_supplier_type#15518412, threshold#15518629 AS u_threshold#15518413, normalized_name#15517876 AS u_normalized_name#15518414, location_key#15517933 AS u_location_key#15518418]
: : +- AQEShuffleRead coalesced
: : +- ShuffleQueryStage 14
: : +- Exchange hashpartitioning(brand_context_id#15518619, supplier_id#15518620, 10), ENSURE_REQUIREMENTS, [plan_id=4321901]
: : +- *(4) Project [brand_context_id#15518619, supplier_id#15518620, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, pythonUDF0#15520016 AS normalized_name#15517876, concat_ws(|, coalesce(pythonUDF1#15520017, ), coalesce(pythonUDF2#15520018, ), coalesce(pythonUDF3#15520019, )) AS location_key#15517933]
: : +- BatchEvalPython [normalize_name(entity_name#15518621)#15517875, normalize_location(city#15518622)#15517888, normalize_location(state#15518623)#15517902, normalize_location(country#15518624)#15517917], [pythonUDF0#15520016, pythonUDF1#15520017, pythonUDF2#15520018, pythonUDF3#15520019]
: : +- *(3) Project [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629]
: : +- *(3) Filter ((isnotnull(pythonUDF0#15520013) AND isnotnull(pythonUDF1#15520014)) AND isnotnull(pythonUDF2#15520015))
: : +- BatchEvalPython [normalize_location(city#15518622)#15517888, normalize_location(state#15518623)#15517902, normalize_location(country#15518624)#15517917], [pythonUDF0#15520013, pythonUDF1#15520014, pythonUDF2#15520015]
: : +- *(2) Filter (isnotnull(threshold#15518629) AND isnotnull(brand_context_id#15518619))
: : +- TableCacheQueryStage 2
: : +- InMemoryTableScan [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629], [isnotnull(threshold#15518629), isnotnull(brand_context_id#15518619)]
: : +- InMemoryRelation [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, create_date#15518630], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : +- Filter isnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- *(17) Project [brand_context_id#15518443 AS e_brand_context_id#15518431, supplier_id#15518444 AS e_supplier_id#15518432, canonical_id#15518451 AS e_canonical_id#15518433, pythonUDF0#15520020 AS e_normalized_name#15518434, concat_ws(|, coalesce(pythonUDF1#15520021, ), coalesce(pythonUDF2#15520022, ), coalesce(pythonUDF3#15520023, )) AS e_location_key#15518435, create_date#15518454 AS e_create_date#15518436]
: +- BatchEvalPython [normalize_name(entity_name#15518445)#15517949, normalize_location(city#15518446)#15517962, normalize_location(state#15518447)#15517976, normalize_location(country#15518448)#15517991], [pythonUDF0#15520020, pythonUDF1#15520021, pythonUDF2#15520022, pythonUDF3#15520023]
: +- *(16) Filter isnotnull(brand_context_id#15518443)
: +- TableCacheQueryStage 5
: +- InMemoryTableScan [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, entity_name#15518445, city#15518446, state#15518447, country#15518448, create_date#15518454], [isnotnull(brand_context_id#15518443)]
: +- InMemoryRelation [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, is_primary#15518452, entity_name#15518445, city#15518446, state#15518447, country#15518448, threshold#15518453, create_date#15518454], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Filter isnotnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- *(29) Project [brand_context_id#15518655, supplier_id#15518656, declaring_supplier_id#15518662, supplier_type#15518661, supplier_id#15518656 AS canonical_id#15518603, 1 AS is_primary#15518604, threshold#15518665 AS configured_threshold#15518605, 0.0 AS match_percentage#15518606, 0.0 AS confidence_score#15518607, new_canonical AS match_reason#15518608]
+- *(29) BroadcastHashJoin [brand_context_id#15518655, supplier_id#15518656], [brand_context_id#15518530, supplier_id#15518531], LeftAnti, BuildRight, false
:- ShuffleQueryStage 16
: +- Exchange hashpartitioning(brand_context_id#15518655, supplier_id#15518656, 10), ENSURE_REQUIREMENTS, [plan_id=4321413]
: +- TableCacheQueryStage 6
: +- InMemoryTableScan [brand_context_id#15518655, supplier_id#15518656, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665]
: +- InMemoryRelation [brand_context_id#15518655, supplier_id#15518656, entity_name#15518657, city#15518658, state#15518659, country#15518660, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665, create_date#15518666], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: +- Filter isnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- BroadcastQueryStage 27
+- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[1, string, true]),false), [plan_id=4325011]
+- *(25) Project [u_brand_context_id#15518409 AS brand_context_id#15518530, u_supplier_id#15518410 AS supplier_id#15518531]
+- *(25) Filter (rank#15518510 = 1)
+- Window [row_number() windowspecdefinition(u_brand_context_id#15518409, u_supplier_id#15518410, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS rank#15518510], [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST]
+- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Final
+- *(24) Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
+- AQEShuffleRead coalesced
+- ShuffleQueryStage 26
+- Exchange hashpartitioning(u_brand_context_id#15518409, u_supplier_id#15518410, 10), ENSURE_REQUIREMENTS, [plan_id=4324847]
+- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Partial
+- *(23) Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
+- *(23) Project [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, pythonUDF0#15520038 AS similarity#15518490]
+- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520038]
+- *(22) Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
+- *(22) Filter (cast(pythonUDF0#15520037 as double) >= u_threshold#15518413)
+- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520037]
+- *(21) Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
+- *(21) BroadcastHashJoin [u_brand_context_id#15518409, u_location_key#15518418], [e_brand_context_id#15518431, e_location_key#15518435], Inner, BuildLeft, false
:- BroadcastQueryStage 24
: +- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[4, string, false]),false), [plan_id=4324492]
: +- *(15) Project [brand_context_id#15518552 AS u_brand_context_id#15518409, supplier_id#15518553 AS u_supplier_id#15518410, threshold#15518562 AS u_threshold#15518413, normalized_name#15517876 AS u_normalized_name#15518414, location_key#15517933 AS u_location_key#15518418]
: +- AQEShuffleRead coalesced
: +- ShuffleQueryStage 18
: +- Exchange hashpartitioning(brand_context_id#15518552, supplier_id#15518553, 10), ENSURE_REQUIREMENTS, [plan_id=4322336]
: +- *(9) Project [brand_context_id#15518552, supplier_id#15518553, threshold#15518562, pythonUDF0#15520029 AS normalized_name#15517876, concat_ws(|, coalesce(pythonUDF1#15520030, ), coalesce(pythonUDF2#15520031, ), coalesce(pythonUDF3#15520032, )) AS location_key#15517933]
: +- BatchEvalPython [normalize_name(entity_name#15518554)#15517875, normalize_location(city#15518555)#15517888, normalize_location(state#15518556)#15517902, normalize_location(country#15518557)#15517917], [pythonUDF0#15520029, pythonUDF1#15520030, pythonUDF2#15520031, pythonUDF3#15520032]
: +- *(8) Project [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562]
: +- *(8) Filter ((isnotnull(pythonUDF0#15520026) AND isnotnull(pythonUDF1#15520027)) AND isnotnull(pythonUDF2#15520028))
: +- BatchEvalPython [normalize_location(city#15518555)#15517888, normalize_location(state#15518556)#15517902, normalize_location(country#15518557)#15517917], [pythonUDF0#15520026, pythonUDF1#15520027, pythonUDF2#15520028]
: +- *(7) Filter ((isnotnull(threshold#15518562) AND isnotnull(brand_context_id#15518552)) AND isnotnull(supplier_id#15518553))
: +- TableCacheQueryStage 9
: +- InMemoryTableScan [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562], [isnotnull(threshold#15518562), isnotnull(brand_context_id#15518552), isnotnull(supplier_id#15518553)]
: +- InMemoryRelation [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, supplier_type#15518558, declaring_supplier_id#15518559, threshold#15518562, create_date#15518563], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: +- Filter isnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- *(21) Project [brand_context_id#15518691 AS e_brand_context_id#15518431, supplier_id#15518692 AS e_supplier_id#15518432, pythonUDF0#15520033 AS e_normalized_name#15518434, concat_ws(|, coalesce(pythonUDF1#15520034, ), coalesce(pythonUDF2#15520035, ), coalesce(pythonUDF3#15520036, )) AS e_location_key#15518435, create_date#15518702 AS e_create_date#15518436]
+- BatchEvalPython [normalize_name(entity_name#15518693)#15517949, normalize_location(city#15518694)#15517962, normalize_location(state#15518695)#15517976, normalize_location(country#15518696)#15517991], [pythonUDF0#15520033, pythonUDF1#15520034, pythonUDF2#15520035, pythonUDF3#15520036]
+- *(20) Filter isnotnull(brand_context_id#15518691)
+- TableCacheQueryStage 12
+- InMemoryTableScan [brand_context_id#15518691, supplier_id#15518692, entity_name#15518693, city#15518694, state#15518695, country#15518696, create_date#15518702], [isnotnull(brand_context_id#15518691)]
+- InMemoryRelation [brand_context_id#15518691, supplier_id#15518692, canonical_id#15518699, is_primary#15518700, entity_name#15518693, city#15518694, state#15518695, country#15518696, threshold#15518701, create_date#15518702], StorageLevel(disk, memory, deserialized, 1 replicas)
+- AdaptiveSparkPlan isFinalPlan=false
+- Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Union
:- Project [brand_context_id#15516344, supplier_id#15516345, declaring_supplier_id#15516351, supplier_type#15516350, canonical_id#15518301, 0 AS is_primary#15518365, threshold#15516354 AS configured_threshold#15518366, 100.0 AS match_percentage#15518367, 1.0 AS confidence_score#15518368, exact_id_match AS match_reason#15518369]
: +- BroadcastHashJoin [brand_context_id#15516344, supplier_id#15516345], [brand_context_id#15518293, supplier_id#15518294], Inner, BuildLeft, false
: :- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4321101]
: : +- Filter (isnotnull(brand_context_id#15516344) AND isnotnull(supplier_id#15516345))
: : +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354], [isnotnull(brand_context_id#15516344), isnotnull(supplier_id#15516345)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : +- Filter isnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- Project [brand_context_id#15518293, supplier_id#15518294, canonical_id#15518301]
: +- Filter ((((isnotnull(is_primary#15518302) AND is_primary#15518302) AND isnotnull(canonical_id#15518301)) AND isnotnull(brand_context_id#15518293)) AND isnotnull(supplier_id#15518294))
: +- InMemoryTableScan [brand_context_id#15518293, canonical_id#15518301, is_primary#15518302, supplier_id#15518294], [isnotnull(is_primary#15518302), is_primary#15518302, isnotnull(canonical_id#15518301), isnotnull(brand_context_id#15518293), isnotnull(supplier_id#15518294)]
: +- InMemoryRelation [brand_context_id#15518293, supplier_id#15518294, canonical_id#15518301, is_primary#15518302, entity_name#15518295, city#15518296, state#15518297, country#15518298, threshold#15518303, create_date#15518304], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Filter isnotnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
:- Project [u_brand_context_id#15518409 AS brand_context_id#15518530, u_supplier_id#15518410 AS supplier_id#15518531, u_declaring_supplier_id#15518411 AS declaring_supplier_id#15518532, u_supplier_type#15518412 AS supplier_type#15518533, e_canonical_id#15518433 AS canonical_id#15518534, 0 AS is_primary#15518535, u_threshold#15518413 AS configured_threshold#15518536, cast((similarity#15518490 * 100.0) as double) AS match_percentage#15518643, cast(similarity#15518490 as double) AS confidence_score#15518644, matched_existing AS match_reason#15518539]
: +- Filter (rank#15518510 = 1)
: +- Window [row_number() windowspecdefinition(u_brand_context_id#15518409, u_supplier_id#15518410, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS rank#15518510], [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST]
: +- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Final
: +- Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
: +- Exchange hashpartitioning(u_brand_context_id#15518409, u_supplier_id#15518410, 10), ENSURE_REQUIREMENTS, [plan_id=4321128]
: +- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Partial
: +- Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
: +- Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, pythonUDF0#15520025 AS similarity#15518490]
: +- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520025]
: +- Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
: +- Filter (cast(pythonUDF0#15520024 as double) >= u_threshold#15518413)
: +- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520024]
: +- Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
: +- BroadcastHashJoin [u_brand_context_id#15518409, u_location_key#15518418], [e_brand_context_id#15518431, e_location_key#15518435], Inner, BuildLeft, false
: :- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[6, string, false]),false), [plan_id=4321116]
: : +- Project [brand_context_id#15518619 AS u_brand_context_id#15518409, supplier_id#15518620 AS u_supplier_id#15518410, declaring_supplier_id#15518626 AS u_declaring_supplier_id#15518411, supplier_type#15518625 AS u_supplier_type#15518412, threshold#15518629 AS u_threshold#15518413, normalized_name#15517876 AS u_normalized_name#15518414, location_key#15517933 AS u_location_key#15518418]
: : +- SortMergeJoin [brand_context_id#15518619, supplier_id#15518620], [brand_context_id#15518382, supplier_id#15518383], LeftAnti
: : :- Sort [brand_context_id#15518619 ASC NULLS FIRST, supplier_id#15518620 ASC NULLS FIRST], false, 0
: : : +- Exchange hashpartitioning(brand_context_id#15518619, supplier_id#15518620, 10), ENSURE_REQUIREMENTS, [plan_id=4321109]
: : : +- Project [brand_context_id#15518619, supplier_id#15518620, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, pythonUDF0#15520016 AS normalized_name#15517876, concat_ws(|, coalesce(pythonUDF1#15520017, ), coalesce(pythonUDF2#15520018, ), coalesce(pythonUDF3#15520019, )) AS location_key#15517933]
: : : +- BatchEvalPython [normalize_name(entity_name#15518621)#15517875, normalize_location(city#15518622)#15517888, normalize_location(state#15518623)#15517902, normalize_location(country#15518624)#15517917], [pythonUDF0#15520016, pythonUDF1#15520017, pythonUDF2#15520018, pythonUDF3#15520019]
: : : +- Project [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629]
: : : +- Filter ((isnotnull(pythonUDF0#15520013) AND isnotnull(pythonUDF1#15520014)) AND isnotnull(pythonUDF2#15520015))
: : : +- BatchEvalPython [normalize_location(city#15518622)#15517888, normalize_location(state#15518623)#15517902, normalize_location(country#15518624)#15517917], [pythonUDF0#15520013, pythonUDF1#15520014, pythonUDF2#15520015]
: : : +- Filter (isnotnull(threshold#15518629) AND isnotnull(brand_context_id#15518619))
: : : +- InMemoryTableScan [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629], [isnotnull(threshold#15518629), isnotnull(brand_context_id#15518619)]
: : : +- InMemoryRelation [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, create_date#15518630], StorageLevel(disk, memory, deserialized, 1 replicas)
: : : +- AdaptiveSparkPlan isFinalPlan=false
: : : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : : +- Filter isnull(canonical_id#15516352)
: : : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: : +- Sort [brand_context_id#15518382 ASC NULLS FIRST, supplier_id#15518383 ASC NULLS FIRST], false, 0
: : +- Exchange hashpartitioning(brand_context_id#15518382, supplier_id#15518383, 10), ENSURE_REQUIREMENTS, [plan_id=4321110]
: : +- Project [brand_context_id#15518382, supplier_id#15518383]
: : +- BroadcastHashJoin [brand_context_id#15518382, supplier_id#15518383], [brand_context_id#15518631, supplier_id#15518632], Inner, BuildLeft, false
: : :- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4321104]
: : : +- Filter (isnotnull(brand_context_id#15518382) AND isnotnull(supplier_id#15518383))
: : : +- InMemoryTableScan [brand_context_id#15518382, supplier_id#15518383], [isnotnull(brand_context_id#15518382), isnotnull(supplier_id#15518383)]
: : : +- InMemoryRelation [brand_context_id#15518382, supplier_id#15518383, entity_name#15518384, city#15518385, state#15518386, country#15518387, supplier_type#15518388, declaring_supplier_id#15518389, threshold#15518392, create_date#15518393], StorageLevel(disk, memory, deserialized, 1 replicas)
: : : +- AdaptiveSparkPlan isFinalPlan=false
: : : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : : +- Filter isnull(canonical_id#15516352)
: : : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: : +- Project [brand_context_id#15518631, supplier_id#15518632]
: : +- Filter ((((isnotnull(is_primary#15518640) AND is_primary#15518640) AND isnotnull(canonical_id#15518639)) AND isnotnull(brand_context_id#15518631)) AND isnotnull(supplier_id#15518632))
: : +- InMemoryTableScan [brand_context_id#15518631, canonical_id#15518639, is_primary#15518640, supplier_id#15518632], [isnotnull(is_primary#15518640), is_primary#15518640, isnotnull(canonical_id#15518639), isnotnull(brand_context_id#15518631), isnotnull(supplier_id#15518632)]
: : +- InMemoryRelation [brand_context_id#15518631, supplier_id#15518632, canonical_id#15518639, is_primary#15518640, entity_name#15518633, city#15518634, state#15518635, country#15518636, threshold#15518641, create_date#15518642], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Filter isnotnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- Project [brand_context_id#15518443 AS e_brand_context_id#15518431, supplier_id#15518444 AS e_supplier_id#15518432, canonical_id#15518451 AS e_canonical_id#15518433, pythonUDF0#15520020 AS e_normalized_name#15518434, concat_ws(|, coalesce(pythonUDF1#15520021, ), coalesce(pythonUDF2#15520022, ), coalesce(pythonUDF3#15520023, )) AS e_location_key#15518435, create_date#15518454 AS e_create_date#15518436]
: +- BatchEvalPython [normalize_name(entity_name#15518445)#15517949, normalize_location(city#15518446)#15517962, normalize_location(state#15518447)#15517976, normalize_location(country#15518448)#15517991], [pythonUDF0#15520020, pythonUDF1#15520021, pythonUDF2#15520022, pythonUDF3#15520023]
: +- Filter isnotnull(brand_context_id#15518443)
: +- InMemoryTableScan [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, entity_name#15518445, city#15518446, state#15518447, country#15518448, create_date#15518454], [isnotnull(brand_context_id#15518443)]
: +- InMemoryRelation [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, is_primary#15518452, entity_name#15518445, city#15518446, state#15518447, country#15518448, threshold#15518453, create_date#15518454], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Filter isnotnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- Project [brand_context_id#15518655, supplier_id#15518656, declaring_supplier_id#15518662, supplier_type#15518661, supplier_id#15518656 AS canonical_id#15518603, 1 AS is_primary#15518604, threshold#15518665 AS configured_threshold#15518605, 0.0 AS match_percentage#15518606, 0.0 AS confidence_score#15518607, new_canonical AS match_reason#15518608]
+- SortMergeJoin [brand_context_id#15518655, supplier_id#15518656], [brand_context_id#15518530, supplier_id#15518531], LeftAnti
:- SortMergeJoin [brand_context_id#15518655, supplier_id#15518656], [brand_context_id#15518667, supplier_id#15518668], LeftAnti
: :- Sort [brand_context_id#15518655 ASC NULLS FIRST, supplier_id#15518656 ASC NULLS FIRST], false, 0
: : +- Exchange hashpartitioning(brand_context_id#15518655, supplier_id#15518656, 10), ENSURE_REQUIREMENTS, [plan_id=4321139]
: : +- InMemoryTableScan [brand_context_id#15518655, supplier_id#15518656, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665]
: : +- InMemoryRelation [brand_context_id#15518655, supplier_id#15518656, entity_name#15518657, city#15518658, state#15518659, country#15518660, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665, create_date#15518666], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : +- Filter isnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- Sort [brand_context_id#15518667 ASC NULLS FIRST, supplier_id#15518668 ASC NULLS FIRST], false, 0
: +- Exchange hashpartitioning(brand_context_id#15518667, supplier_id#15518668, 10), ENSURE_REQUIREMENTS, [plan_id=4321140]
: +- Project [brand_context_id#15518667, supplier_id#15518668]
: +- BroadcastHashJoin [brand_context_id#15518667, supplier_id#15518668], [brand_context_id#15518679, supplier_id#15518680], Inner, BuildLeft, false
: :- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4321134]
: : +- Filter (isnotnull(brand_context_id#15518667) AND isnotnull(supplier_id#15518668))
: : +- InMemoryTableScan [brand_context_id#15518667, supplier_id#15518668], [isnotnull(brand_context_id#15518667), isnotnull(supplier_id#15518668)]
: : +- InMemoryRelation [brand_context_id#15518667, supplier_id#15518668, entity_name#15518669, city#15518670, state#15518671, country#15518672, supplier_type#15518673, declaring_supplier_id#15518674, threshold#15518677, create_date#15518678], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : +- Filter isnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- Project [brand_context_id#15518679, supplier_id#15518680]
: +- Filter ((((isnotnull(is_primary#15518688) AND is_primary#15518688) AND isnotnull(canonical_id#15518687)) AND isnotnull(brand_context_id#15518679)) AND isnotnull(supplier_id#15518680))
: +- InMemoryTableScan [brand_context_id#15518679, canonical_id#15518687, is_primary#15518688, supplier_id#15518680], [isnotnull(is_primary#15518688), is_primary#15518688, isnotnull(canonical_id#15518687), isnotnull(brand_context_id#15518679), isnotnull(supplier_id#15518680)]
: +- InMemoryRelation [brand_context_id#15518679, supplier_id#15518680, canonical_id#15518687, is_primary#15518688, entity_name#15518681, city#15518682, state#15518683, country#15518684, threshold#15518689, create_date#15518690], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Filter isnotnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- Project [u_brand_context_id#15518409 AS brand_context_id#15518530, u_supplier_id#15518410 AS supplier_id#15518531]
+- Filter (rank#15518510 = 1)
+- Window [row_number() windowspecdefinition(u_brand_context_id#15518409, u_supplier_id#15518410, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS rank#15518510], [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST]
+- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Final
+- Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
+- Exchange hashpartitioning(u_brand_context_id#15518409, u_supplier_id#15518410, 10), ENSURE_REQUIREMENTS, [plan_id=4321168]
+- WindowGroupLimit [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Partial
+- Sort [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
+- Project [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, pythonUDF0#15520038 AS similarity#15518490]
+- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520038]
+- Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
+- Filter (cast(pythonUDF0#15520037 as double) >= u_threshold#15518413)
+- BatchEvalPython [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520037]
+- Project [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
+- BroadcastHashJoin [u_brand_context_id#15518409, u_location_key#15518418], [e_brand_context_id#15518431, e_location_key#15518435], Inner, BuildLeft, false
:- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true], input[4, string, false]),false), [plan_id=4321156]
: +- Project [brand_context_id#15518552 AS u_brand_context_id#15518409, supplier_id#15518553 AS u_supplier_id#15518410, threshold#15518562 AS u_threshold#15518413, normalized_name#15517876 AS u_normalized_name#15518414, location_key#15517933 AS u_location_key#15518418]
: +- SortMergeJoin [brand_context_id#15518552, supplier_id#15518553], [brand_context_id#15518564, supplier_id#15518565], LeftAnti
: :- Sort [brand_context_id#15518552 ASC NULLS FIRST, supplier_id#15518553 ASC NULLS FIRST], false, 0
: : +- Exchange hashpartitioning(brand_context_id#15518552, supplier_id#15518553, 10), ENSURE_REQUIREMENTS, [plan_id=4321149]
: : +- Project [brand_context_id#15518552, supplier_id#15518553, threshold#15518562, pythonUDF0#15520029 AS normalized_name#15517876, concat_ws(|, coalesce(pythonUDF1#15520030, ), coalesce(pythonUDF2#15520031, ), coalesce(pythonUDF3#15520032, )) AS location_key#15517933]
: : +- BatchEvalPython [normalize_name(entity_name#15518554)#15517875, normalize_location(city#15518555)#15517888, normalize_location(state#15518556)#15517902, normalize_location(country#15518557)#15517917], [pythonUDF0#15520029, pythonUDF1#15520030, pythonUDF2#15520031, pythonUDF3#15520032]
: : +- Project [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562]
: : +- Filter ((isnotnull(pythonUDF0#15520026) AND isnotnull(pythonUDF1#15520027)) AND isnotnull(pythonUDF2#15520028))
: : +- BatchEvalPython [normalize_location(city#15518555)#15517888, normalize_location(state#15518556)#15517902, normalize_location(country#15518557)#15517917], [pythonUDF0#15520026, pythonUDF1#15520027, pythonUDF2#15520028]
: : +- Filter ((isnotnull(threshold#15518562) AND isnotnull(brand_context_id#15518552)) AND isnotnull(supplier_id#15518553))
: : +- InMemoryTableScan [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562], [isnotnull(threshold#15518562), isnotnull(brand_context_id#15518552), isnotnull(supplier_id#15518553)]
: : +- InMemoryRelation [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, supplier_type#15518558, declaring_supplier_id#15518559, threshold#15518562, create_date#15518563], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : +- Filter isnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- Sort [brand_context_id#15518564 ASC NULLS FIRST, supplier_id#15518565 ASC NULLS FIRST], false, 0
: +- Exchange hashpartitioning(brand_context_id#15518564, supplier_id#15518565, 10), ENSURE_REQUIREMENTS, [plan_id=4321150]
: +- Project [brand_context_id#15518564, supplier_id#15518565]
: +- BroadcastHashJoin [brand_context_id#15518564, supplier_id#15518565], [brand_context_id#15518576, supplier_id#15518577], Inner, BuildLeft, false
: :- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4321144]
: : +- Filter (isnotnull(brand_context_id#15518564) AND isnotnull(supplier_id#15518565))
: : +- InMemoryTableScan [brand_context_id#15518564, supplier_id#15518565], [isnotnull(brand_context_id#15518564), isnotnull(supplier_id#15518565)]
: : +- InMemoryRelation [brand_context_id#15518564, supplier_id#15518565, entity_name#15518566, city#15518567, state#15518568, country#15518569, supplier_type#15518570, declaring_supplier_id#15518571, threshold#15518574, create_date#15518575], StorageLevel(disk, memory, deserialized, 1 replicas)
: : +- AdaptiveSparkPlan isFinalPlan=false
: : +- Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
: : +- Filter isnull(canonical_id#15516352)
: : +- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
: : +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
: +- Project [brand_context_id#15518576, supplier_id#15518577]
: +- Filter ((((isnotnull(is_primary#15518585) AND is_primary#15518585) AND isnotnull(canonical_id#15518584)) AND isnotnull(brand_context_id#15518576)) AND isnotnull(supplier_id#15518577))
: +- InMemoryTableScan [brand_context_id#15518576, canonical_id#15518584, is_primary#15518585, supplier_id#15518577], [isnotnull(is_primary#15518585), is_primary#15518585, isnotnull(canonical_id#15518584), isnotnull(brand_context_id#15518576), isnotnull(supplier_id#15518577)]
: +- InMemoryRelation [brand_context_id#15518576, supplier_id#15518577, canonical_id#15518584, is_primary#15518585, entity_name#15518578, city#15518579, state#15518580, country#15518581, threshold#15518586, create_date#15518587], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- AdaptiveSparkPlan isFinalPlan=false
: +- Filter isnotnull(canonical_id#15516352)
: +- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
: +- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- Project [brand_context_id#15518691 AS e_brand_context_id#15518431, supplier_id#15518692 AS e_supplier_id#15518432, pythonUDF0#15520033 AS e_normalized_name#15518434, concat_ws(|, coalesce(pythonUDF1#15520034, ), coalesce(pythonUDF2#15520035, ), coalesce(pythonUDF3#15520036, )) AS e_location_key#15518435, create_date#15518702 AS e_create_date#15518436]
+- BatchEvalPython [normalize_name(entity_name#15518693)#15517949, normalize_location(city#15518694)#15517962, normalize_location(state#15518695)#15517976, normalize_location(country#15518696)#15517991], [pythonUDF0#15520033, pythonUDF1#15520034, pythonUDF2#15520035, pythonUDF3#15520036]
+- Filter isnotnull(brand_context_id#15518691)
+- InMemoryTableScan [brand_context_id#15518691, supplier_id#15518692, entity_name#15518693, city#15518694, state#15518695, country#15518696, create_date#15518702], [isnotnull(brand_context_id#15518691)]
+- InMemoryRelation [brand_context_id#15518691, supplier_id#15518692, canonical_id#15518699, is_primary#15518700, entity_name#15518693, city#15518694, state#15518695, country#15518696, threshold#15518701, create_date#15518702], StorageLevel(disk, memory, deserialized, 1 replicas)
+- AdaptiveSparkPlan isFinalPlan=false
+- Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(3) InMemoryTableScan
Output [5]: [brand_context_id#15516344, supplier_id#15516345, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354]
Arguments: [brand_context_id#15516344, supplier_id#15516345, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354], [isnotnull(brand_context_id#15516344), isnotnull(supplier_id#15516345)]
(4) InMemoryRelation
Arguments: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355], 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- *(1) Filter isnull(canonical_id#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- Filter isnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(5) InMemoryTableScan
Output [11]: [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354]
Arguments: [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
(6) InMemoryRelation
Arguments: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(7) 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355]
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>
(8) Filter
Input [11]: [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354]
Condition : isnull(canonical_id#15516352)
(9) Project
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Input [11]: [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354]
(10) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(11) Filter
Input [5]: [brand_context_id#15516344, supplier_id#15516345, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354]
Condition : (isnotnull(brand_context_id#15516344) AND isnotnull(supplier_id#15516345))
(12) BroadcastExchange
Input [5]: [brand_context_id#15516344, supplier_id#15516345, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4325255]
(13) InMemoryTableScan
Output [4]: [brand_context_id#15518293, canonical_id#15518301, is_primary#15518302, supplier_id#15518294]
Arguments: [brand_context_id#15518293, canonical_id#15518301, is_primary#15518302, supplier_id#15518294], [isnotnull(is_primary#15518302), is_primary#15518302, isnotnull(canonical_id#15518301), isnotnull(brand_context_id#15518293), isnotnull(supplier_id#15518294)]
(14) InMemoryRelation
Arguments: [brand_context_id#15518293, supplier_id#15518294, canonical_id#15518301, is_primary#15518302, entity_name#15518295, city#15518296, state#15518297, country#15518298, threshold#15518303, create_date#15518304], 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#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(15) InMemoryTableScan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Arguments: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
(16) InMemoryRelation
Arguments: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(17) 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355]
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>
(18) Filter
Input [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Condition : isnotnull(canonical_id#15516352)
(19) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(20) Filter
Input [4]: [brand_context_id#15518293, canonical_id#15518301, is_primary#15518302, supplier_id#15518294]
Condition : ((((isnotnull(is_primary#15518302) AND is_primary#15518302) AND isnotnull(canonical_id#15518301)) AND isnotnull(brand_context_id#15518293)) AND isnotnull(supplier_id#15518294))
(21) Project
Output [3]: [brand_context_id#15518293, supplier_id#15518294, canonical_id#15518301]
Input [4]: [brand_context_id#15518293, canonical_id#15518301, is_primary#15518302, supplier_id#15518294]
(22) BroadcastHashJoin
Left keys [2]: [brand_context_id#15516344, supplier_id#15516345]
Right keys [2]: [brand_context_id#15518293, supplier_id#15518294]
Join type: Inner
Join condition: None
(23) Project
Output [10]: [brand_context_id#15516344, supplier_id#15516345, declaring_supplier_id#15516351, supplier_type#15516350, canonical_id#15518301, 0 AS is_primary#15518365, threshold#15516354 AS configured_threshold#15518366, 100.0 AS match_percentage#15518367, 1.0 AS confidence_score#15518368, exact_id_match AS match_reason#15518369]
Input [8]: [brand_context_id#15516344, supplier_id#15516345, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, brand_context_id#15518293, supplier_id#15518294, canonical_id#15518301]
(24) InMemoryTableScan
Output [9]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629]
Arguments: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629], [isnotnull(threshold#15518629), isnotnull(brand_context_id#15518619)]
(25) InMemoryRelation
Arguments: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, create_date#15518630], 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- *(1) Filter isnull(canonical_id#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- Filter isnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(26) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(27) Filter
Input [9]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629]
Condition : (isnotnull(threshold#15518629) AND isnotnull(brand_context_id#15518619))
(28) BatchEvalPython
Input [9]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629]
Arguments: [normalize_location(city#15518622)#15517888, normalize_location(state#15518623)#15517902, normalize_location(country#15518624)#15517917], [pythonUDF0#15520013, pythonUDF1#15520014, pythonUDF2#15520015]
(29) Filter
Input [12]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, pythonUDF0#15520013, pythonUDF1#15520014, pythonUDF2#15520015]
Condition : ((isnotnull(pythonUDF0#15520013) AND isnotnull(pythonUDF1#15520014)) AND isnotnull(pythonUDF2#15520015))
(30) Project
Output [9]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629]
Input [12]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, pythonUDF0#15520013, pythonUDF1#15520014, pythonUDF2#15520015]
(31) BatchEvalPython
Input [9]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629]
Arguments: [normalize_name(entity_name#15518621)#15517875, normalize_location(city#15518622)#15517888, normalize_location(state#15518623)#15517902, normalize_location(country#15518624)#15517917], [pythonUDF0#15520016, pythonUDF1#15520017, pythonUDF2#15520018, pythonUDF3#15520019]
(32) Project
Output [7]: [brand_context_id#15518619, supplier_id#15518620, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, pythonUDF0#15520016 AS normalized_name#15517876, concat_ws(|, coalesce(pythonUDF1#15520017, ), coalesce(pythonUDF2#15520018, ), coalesce(pythonUDF3#15520019, )) AS location_key#15517933]
Input [13]: [brand_context_id#15518619, supplier_id#15518620, entity_name#15518621, city#15518622, state#15518623, country#15518624, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, pythonUDF0#15520016, pythonUDF1#15520017, pythonUDF2#15520018, pythonUDF3#15520019]
(33) Exchange
Input [7]: [brand_context_id#15518619, supplier_id#15518620, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, normalized_name#15517876, location_key#15517933]
Arguments: hashpartitioning(brand_context_id#15518619, supplier_id#15518620, 10), ENSURE_REQUIREMENTS, [plan_id=4325263]
(34) Sort
Input [7]: [brand_context_id#15518619, supplier_id#15518620, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, normalized_name#15517876, location_key#15517933]
Arguments: [brand_context_id#15518619 ASC NULLS FIRST, supplier_id#15518620 ASC NULLS FIRST], false, 0
(35) InMemoryTableScan
Output [2]: [brand_context_id#15518382, supplier_id#15518383]
Arguments: [brand_context_id#15518382, supplier_id#15518383], [isnotnull(brand_context_id#15518382), isnotnull(supplier_id#15518383)]
(36) InMemoryRelation
Arguments: [brand_context_id#15518382, supplier_id#15518383, entity_name#15518384, city#15518385, state#15518386, country#15518387, supplier_type#15518388, declaring_supplier_id#15518389, threshold#15518392, create_date#15518393], 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- *(1) Filter isnull(canonical_id#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- Filter isnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(37) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(38) Filter
Input [2]: [brand_context_id#15518382, supplier_id#15518383]
Condition : (isnotnull(brand_context_id#15518382) AND isnotnull(supplier_id#15518383))
(39) BroadcastExchange
Input [2]: [brand_context_id#15518382, supplier_id#15518383]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4325258]
(40) InMemoryTableScan
Output [4]: [brand_context_id#15518631, canonical_id#15518639, is_primary#15518640, supplier_id#15518632]
Arguments: [brand_context_id#15518631, canonical_id#15518639, is_primary#15518640, supplier_id#15518632], [isnotnull(is_primary#15518640), is_primary#15518640, isnotnull(canonical_id#15518639), isnotnull(brand_context_id#15518631), isnotnull(supplier_id#15518632)]
(41) InMemoryRelation
Arguments: [brand_context_id#15518631, supplier_id#15518632, canonical_id#15518639, is_primary#15518640, entity_name#15518633, city#15518634, state#15518635, country#15518636, threshold#15518641, create_date#15518642], 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#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(42) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(43) Filter
Input [4]: [brand_context_id#15518631, canonical_id#15518639, is_primary#15518640, supplier_id#15518632]
Condition : ((((isnotnull(is_primary#15518640) AND is_primary#15518640) AND isnotnull(canonical_id#15518639)) AND isnotnull(brand_context_id#15518631)) AND isnotnull(supplier_id#15518632))
(44) Project
Output [2]: [brand_context_id#15518631, supplier_id#15518632]
Input [4]: [brand_context_id#15518631, canonical_id#15518639, is_primary#15518640, supplier_id#15518632]
(45) BroadcastHashJoin
Left keys [2]: [brand_context_id#15518382, supplier_id#15518383]
Right keys [2]: [brand_context_id#15518631, supplier_id#15518632]
Join type: Inner
Join condition: None
(46) Project
Output [2]: [brand_context_id#15518382, supplier_id#15518383]
Input [4]: [brand_context_id#15518382, supplier_id#15518383, brand_context_id#15518631, supplier_id#15518632]
(47) Exchange
Input [2]: [brand_context_id#15518382, supplier_id#15518383]
Arguments: hashpartitioning(brand_context_id#15518382, supplier_id#15518383, 10), ENSURE_REQUIREMENTS, [plan_id=4325264]
(48) Sort
Input [2]: [brand_context_id#15518382, supplier_id#15518383]
Arguments: [brand_context_id#15518382 ASC NULLS FIRST, supplier_id#15518383 ASC NULLS FIRST], false, 0
(49) SortMergeJoin
Left keys [2]: [brand_context_id#15518619, supplier_id#15518620]
Right keys [2]: [brand_context_id#15518382, supplier_id#15518383]
Join type: LeftAnti
Join condition: None
(50) Project
Output [7]: [brand_context_id#15518619 AS u_brand_context_id#15518409, supplier_id#15518620 AS u_supplier_id#15518410, declaring_supplier_id#15518626 AS u_declaring_supplier_id#15518411, supplier_type#15518625 AS u_supplier_type#15518412, threshold#15518629 AS u_threshold#15518413, normalized_name#15517876 AS u_normalized_name#15518414, location_key#15517933 AS u_location_key#15518418]
Input [7]: [brand_context_id#15518619, supplier_id#15518620, supplier_type#15518625, declaring_supplier_id#15518626, threshold#15518629, normalized_name#15517876, location_key#15517933]
(51) BroadcastExchange
Input [7]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, u_location_key#15518418]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[6, string, false]),false), [plan_id=4325270]
(52) InMemoryTableScan
Output [8]: [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, entity_name#15518445, city#15518446, state#15518447, country#15518448, create_date#15518454]
Arguments: [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, entity_name#15518445, city#15518446, state#15518447, country#15518448, create_date#15518454], [isnotnull(brand_context_id#15518443)]
(53) InMemoryRelation
Arguments: [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, is_primary#15518452, entity_name#15518445, city#15518446, state#15518447, country#15518448, threshold#15518453, create_date#15518454], 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#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(54) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(55) Filter
Input [8]: [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, entity_name#15518445, city#15518446, state#15518447, country#15518448, create_date#15518454]
Condition : isnotnull(brand_context_id#15518443)
(56) BatchEvalPython
Input [8]: [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, entity_name#15518445, city#15518446, state#15518447, country#15518448, create_date#15518454]
Arguments: [normalize_name(entity_name#15518445)#15517949, normalize_location(city#15518446)#15517962, normalize_location(state#15518447)#15517976, normalize_location(country#15518448)#15517991], [pythonUDF0#15520020, pythonUDF1#15520021, pythonUDF2#15520022, pythonUDF3#15520023]
(57) Project
Output [6]: [brand_context_id#15518443 AS e_brand_context_id#15518431, supplier_id#15518444 AS e_supplier_id#15518432, canonical_id#15518451 AS e_canonical_id#15518433, pythonUDF0#15520020 AS e_normalized_name#15518434, concat_ws(|, coalesce(pythonUDF1#15520021, ), coalesce(pythonUDF2#15520022, ), coalesce(pythonUDF3#15520023, )) AS e_location_key#15518435, create_date#15518454 AS e_create_date#15518436]
Input [12]: [brand_context_id#15518443, supplier_id#15518444, canonical_id#15518451, entity_name#15518445, city#15518446, state#15518447, country#15518448, create_date#15518454, pythonUDF0#15520020, pythonUDF1#15520021, pythonUDF2#15520022, pythonUDF3#15520023]
(58) BroadcastHashJoin
Left keys [2]: [u_brand_context_id#15518409, u_location_key#15518418]
Right keys [2]: [e_brand_context_id#15518431, e_location_key#15518435]
Join type: Inner
Join condition: None
(59) Project
Output [10]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
Input [13]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, u_location_key#15518418, e_brand_context_id#15518431, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_location_key#15518435, e_create_date#15518436]
(60) BatchEvalPython
Input [10]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
Arguments: [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520024]
(61) Filter
Input [11]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436, pythonUDF0#15520024]
Condition : (cast(pythonUDF0#15520024 as double) >= u_threshold#15518413)
(62) Project
Output [10]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
Input [11]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436, pythonUDF0#15520024]
(63) BatchEvalPython
Input [10]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436]
Arguments: [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520025]
(64) Project
Output [9]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, pythonUDF0#15520025 AS similarity#15518490]
Input [11]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_canonical_id#15518433, e_normalized_name#15518434, e_create_date#15518436, pythonUDF0#15520025]
(65) Sort
Input [9]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
(66) WindowGroupLimit
Input [9]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Partial
(67) Exchange
Input [9]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490]
Arguments: hashpartitioning(u_brand_context_id#15518409, u_supplier_id#15518410, 10), ENSURE_REQUIREMENTS, [plan_id=4325282]
(68) Sort
Input [9]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
(69) WindowGroupLimit
Input [9]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Final
(70) Window
Input [9]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490]
Arguments: [row_number() windowspecdefinition(u_brand_context_id#15518409, u_supplier_id#15518410, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS rank#15518510], [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST]
(71) Filter
Input [10]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490, rank#15518510]
Condition : (rank#15518510 = 1)
(72) Project
Output [10]: [u_brand_context_id#15518409 AS brand_context_id#15518530, u_supplier_id#15518410 AS supplier_id#15518531, u_declaring_supplier_id#15518411 AS declaring_supplier_id#15518532, u_supplier_type#15518412 AS supplier_type#15518533, e_canonical_id#15518433 AS canonical_id#15518534, 0 AS is_primary#15518535, u_threshold#15518413 AS configured_threshold#15518536, cast((similarity#15518490 * 100.0) as double) AS match_percentage#15518643, cast(similarity#15518490 as double) AS confidence_score#15518644, matched_existing AS match_reason#15518539]
Input [10]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_declaring_supplier_id#15518411, u_supplier_type#15518412, u_threshold#15518413, e_supplier_id#15518432, e_canonical_id#15518433, e_create_date#15518436, similarity#15518490, rank#15518510]
(73) InMemoryTableScan
Output [5]: [brand_context_id#15518655, supplier_id#15518656, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665]
Arguments: [brand_context_id#15518655, supplier_id#15518656, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665]
(74) InMemoryRelation
Arguments: [brand_context_id#15518655, supplier_id#15518656, entity_name#15518657, city#15518658, state#15518659, country#15518660, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665, create_date#15518666], 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- *(1) Filter isnull(canonical_id#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- Filter isnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(75) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(76) Exchange
Input [5]: [brand_context_id#15518655, supplier_id#15518656, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665]
Arguments: hashpartitioning(brand_context_id#15518655, supplier_id#15518656, 10), ENSURE_REQUIREMENTS, [plan_id=4325293]
(77) Sort
Input [5]: [brand_context_id#15518655, supplier_id#15518656, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665]
Arguments: [brand_context_id#15518655 ASC NULLS FIRST, supplier_id#15518656 ASC NULLS FIRST], false, 0
(78) InMemoryTableScan
Output [2]: [brand_context_id#15518667, supplier_id#15518668]
Arguments: [brand_context_id#15518667, supplier_id#15518668], [isnotnull(brand_context_id#15518667), isnotnull(supplier_id#15518668)]
(79) InMemoryRelation
Arguments: [brand_context_id#15518667, supplier_id#15518668, entity_name#15518669, city#15518670, state#15518671, country#15518672, supplier_type#15518673, declaring_supplier_id#15518674, threshold#15518677, create_date#15518678], 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- *(1) Filter isnull(canonical_id#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- Filter isnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(80) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(81) Filter
Input [2]: [brand_context_id#15518667, supplier_id#15518668]
Condition : (isnotnull(brand_context_id#15518667) AND isnotnull(supplier_id#15518668))
(82) BroadcastExchange
Input [2]: [brand_context_id#15518667, supplier_id#15518668]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4325288]
(83) InMemoryTableScan
Output [4]: [brand_context_id#15518679, canonical_id#15518687, is_primary#15518688, supplier_id#15518680]
Arguments: [brand_context_id#15518679, canonical_id#15518687, is_primary#15518688, supplier_id#15518680], [isnotnull(is_primary#15518688), is_primary#15518688, isnotnull(canonical_id#15518687), isnotnull(brand_context_id#15518679), isnotnull(supplier_id#15518680)]
(84) InMemoryRelation
Arguments: [brand_context_id#15518679, supplier_id#15518680, canonical_id#15518687, is_primary#15518688, entity_name#15518681, city#15518682, state#15518683, country#15518684, threshold#15518689, create_date#15518690], 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#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(85) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(86) Filter
Input [4]: [brand_context_id#15518679, canonical_id#15518687, is_primary#15518688, supplier_id#15518680]
Condition : ((((isnotnull(is_primary#15518688) AND is_primary#15518688) AND isnotnull(canonical_id#15518687)) AND isnotnull(brand_context_id#15518679)) AND isnotnull(supplier_id#15518680))
(87) Project
Output [2]: [brand_context_id#15518679, supplier_id#15518680]
Input [4]: [brand_context_id#15518679, canonical_id#15518687, is_primary#15518688, supplier_id#15518680]
(88) BroadcastHashJoin
Left keys [2]: [brand_context_id#15518667, supplier_id#15518668]
Right keys [2]: [brand_context_id#15518679, supplier_id#15518680]
Join type: Inner
Join condition: None
(89) Project
Output [2]: [brand_context_id#15518667, supplier_id#15518668]
Input [4]: [brand_context_id#15518667, supplier_id#15518668, brand_context_id#15518679, supplier_id#15518680]
(90) Exchange
Input [2]: [brand_context_id#15518667, supplier_id#15518668]
Arguments: hashpartitioning(brand_context_id#15518667, supplier_id#15518668, 10), ENSURE_REQUIREMENTS, [plan_id=4325294]
(91) Sort
Input [2]: [brand_context_id#15518667, supplier_id#15518668]
Arguments: [brand_context_id#15518667 ASC NULLS FIRST, supplier_id#15518668 ASC NULLS FIRST], false, 0
(92) SortMergeJoin
Left keys [2]: [brand_context_id#15518655, supplier_id#15518656]
Right keys [2]: [brand_context_id#15518667, supplier_id#15518668]
Join type: LeftAnti
Join condition: None
(93) InMemoryTableScan
Output [7]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562]
Arguments: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562], [isnotnull(threshold#15518562), isnotnull(brand_context_id#15518552), isnotnull(supplier_id#15518553)]
(94) InMemoryRelation
Arguments: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, supplier_type#15518558, declaring_supplier_id#15518559, threshold#15518562, create_date#15518563], 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- *(1) Filter isnull(canonical_id#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- Filter isnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(95) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(96) Filter
Input [7]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562]
Condition : ((isnotnull(threshold#15518562) AND isnotnull(brand_context_id#15518552)) AND isnotnull(supplier_id#15518553))
(97) BatchEvalPython
Input [7]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562]
Arguments: [normalize_location(city#15518555)#15517888, normalize_location(state#15518556)#15517902, normalize_location(country#15518557)#15517917], [pythonUDF0#15520026, pythonUDF1#15520027, pythonUDF2#15520028]
(98) Filter
Input [10]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562, pythonUDF0#15520026, pythonUDF1#15520027, pythonUDF2#15520028]
Condition : ((isnotnull(pythonUDF0#15520026) AND isnotnull(pythonUDF1#15520027)) AND isnotnull(pythonUDF2#15520028))
(99) Project
Output [7]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562]
Input [10]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562, pythonUDF0#15520026, pythonUDF1#15520027, pythonUDF2#15520028]
(100) BatchEvalPython
Input [7]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562]
Arguments: [normalize_name(entity_name#15518554)#15517875, normalize_location(city#15518555)#15517888, normalize_location(state#15518556)#15517902, normalize_location(country#15518557)#15517917], [pythonUDF0#15520029, pythonUDF1#15520030, pythonUDF2#15520031, pythonUDF3#15520032]
(101) Project
Output [5]: [brand_context_id#15518552, supplier_id#15518553, threshold#15518562, pythonUDF0#15520029 AS normalized_name#15517876, concat_ws(|, coalesce(pythonUDF1#15520030, ), coalesce(pythonUDF2#15520031, ), coalesce(pythonUDF3#15520032, )) AS location_key#15517933]
Input [11]: [brand_context_id#15518552, supplier_id#15518553, entity_name#15518554, city#15518555, state#15518556, country#15518557, threshold#15518562, pythonUDF0#15520029, pythonUDF1#15520030, pythonUDF2#15520031, pythonUDF3#15520032]
(102) Exchange
Input [5]: [brand_context_id#15518552, supplier_id#15518553, threshold#15518562, normalized_name#15517876, location_key#15517933]
Arguments: hashpartitioning(brand_context_id#15518552, supplier_id#15518553, 10), ENSURE_REQUIREMENTS, [plan_id=4325303]
(103) Sort
Input [5]: [brand_context_id#15518552, supplier_id#15518553, threshold#15518562, normalized_name#15517876, location_key#15517933]
Arguments: [brand_context_id#15518552 ASC NULLS FIRST, supplier_id#15518553 ASC NULLS FIRST], false, 0
(104) InMemoryTableScan
Output [2]: [brand_context_id#15518564, supplier_id#15518565]
Arguments: [brand_context_id#15518564, supplier_id#15518565], [isnotnull(brand_context_id#15518564), isnotnull(supplier_id#15518565)]
(105) InMemoryRelation
Arguments: [brand_context_id#15518564, supplier_id#15518565, entity_name#15518566, city#15518567, state#15518568, country#15518569, supplier_type#15518570, declaring_supplier_id#15518571, threshold#15518574, create_date#15518575], 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#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- *(1) Filter isnull(canonical_id#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Project [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
+- Filter isnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, canonical_id#15516352, city#15516347, country#15516349, create_date#15516355, declaring_supplier_id#15516351, entity_name#15516346, state#15516348, supplier_id#15516345, supplier_type#15516350, threshold#15516354], [isnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(106) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(107) Filter
Input [2]: [brand_context_id#15518564, supplier_id#15518565]
Condition : (isnotnull(brand_context_id#15518564) AND isnotnull(supplier_id#15518565))
(108) BroadcastExchange
Input [2]: [brand_context_id#15518564, supplier_id#15518565]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false], input[1, string, false]),false), [plan_id=4325298]
(109) InMemoryTableScan
Output [4]: [brand_context_id#15518576, canonical_id#15518584, is_primary#15518585, supplier_id#15518577]
Arguments: [brand_context_id#15518576, canonical_id#15518584, is_primary#15518585, supplier_id#15518577], [isnotnull(is_primary#15518585), is_primary#15518585, isnotnull(canonical_id#15518584), isnotnull(brand_context_id#15518576), isnotnull(supplier_id#15518577)]
(110) InMemoryRelation
Arguments: [brand_context_id#15518576, supplier_id#15518577, canonical_id#15518584, is_primary#15518585, entity_name#15518578, city#15518579, state#15518580, country#15518581, threshold#15518586, create_date#15518587], 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#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(111) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(112) Filter
Input [4]: [brand_context_id#15518576, canonical_id#15518584, is_primary#15518585, supplier_id#15518577]
Condition : ((((isnotnull(is_primary#15518585) AND is_primary#15518585) AND isnotnull(canonical_id#15518584)) AND isnotnull(brand_context_id#15518576)) AND isnotnull(supplier_id#15518577))
(113) Project
Output [2]: [brand_context_id#15518576, supplier_id#15518577]
Input [4]: [brand_context_id#15518576, canonical_id#15518584, is_primary#15518585, supplier_id#15518577]
(114) BroadcastHashJoin
Left keys [2]: [brand_context_id#15518564, supplier_id#15518565]
Right keys [2]: [brand_context_id#15518576, supplier_id#15518577]
Join type: Inner
Join condition: None
(115) Project
Output [2]: [brand_context_id#15518564, supplier_id#15518565]
Input [4]: [brand_context_id#15518564, supplier_id#15518565, brand_context_id#15518576, supplier_id#15518577]
(116) Exchange
Input [2]: [brand_context_id#15518564, supplier_id#15518565]
Arguments: hashpartitioning(brand_context_id#15518564, supplier_id#15518565, 10), ENSURE_REQUIREMENTS, [plan_id=4325304]
(117) Sort
Input [2]: [brand_context_id#15518564, supplier_id#15518565]
Arguments: [brand_context_id#15518564 ASC NULLS FIRST, supplier_id#15518565 ASC NULLS FIRST], false, 0
(118) SortMergeJoin
Left keys [2]: [brand_context_id#15518552, supplier_id#15518553]
Right keys [2]: [brand_context_id#15518564, supplier_id#15518565]
Join type: LeftAnti
Join condition: None
(119) Project
Output [5]: [brand_context_id#15518552 AS u_brand_context_id#15518409, supplier_id#15518553 AS u_supplier_id#15518410, threshold#15518562 AS u_threshold#15518413, normalized_name#15517876 AS u_normalized_name#15518414, location_key#15517933 AS u_location_key#15518418]
Input [5]: [brand_context_id#15518552, supplier_id#15518553, threshold#15518562, normalized_name#15517876, location_key#15517933]
(120) BroadcastExchange
Input [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, u_location_key#15518418]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true], input[4, string, false]),false), [plan_id=4325310]
(121) InMemoryTableScan
Output [7]: [brand_context_id#15518691, supplier_id#15518692, entity_name#15518693, city#15518694, state#15518695, country#15518696, create_date#15518702]
Arguments: [brand_context_id#15518691, supplier_id#15518692, entity_name#15518693, city#15518694, state#15518695, country#15518696, create_date#15518702], [isnotnull(brand_context_id#15518691)]
(122) InMemoryRelation
Arguments: [brand_context_id#15518691, supplier_id#15518692, canonical_id#15518699, is_primary#15518700, entity_name#15518693, city#15518694, state#15518695, country#15518696, threshold#15518701, create_date#15518702], 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#15516352)
+- TableCacheQueryStage 0
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
+- == Initial Plan ==
Filter isnotnull(canonical_id#15516352)
+- InMemoryTableScan [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355], [isnotnull(canonical_id#15516352)]
+- InMemoryRelation [brand_context_id#15516344, supplier_id#15516345, entity_name#15516346, city#15516347, state#15516348, country#15516349, supplier_type#15516350, declaring_supplier_id#15516351, canonical_id#15516352, is_primary#15516353, threshold#15516354, create_date#15516355], 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#15516344,supplier_id#15516345,entity_name#15516346,city#15516347,state#15516348,country#15516349,supplier_type#15516350,declaring_supplier_id#15516351,canonical_id#15516352,is_primary#15516353,threshold#15516354,create_date#15516355] PushedFilters: [], ReadSchema: struct<brand_context_id:string,supplier_id:string,entity_name:string,city:string,state:string,cou...
,None)
(123) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, canonical_id#15516352, is_primary#15516353, entity_name#15516346, city#15516347, state#15516348, country#15516349, threshold#15516354, create_date#15516355]
Arguments: isFinalPlan=false
(124) Filter
Input [7]: [brand_context_id#15518691, supplier_id#15518692, entity_name#15518693, city#15518694, state#15518695, country#15518696, create_date#15518702]
Condition : isnotnull(brand_context_id#15518691)
(125) BatchEvalPython
Input [7]: [brand_context_id#15518691, supplier_id#15518692, entity_name#15518693, city#15518694, state#15518695, country#15518696, create_date#15518702]
Arguments: [normalize_name(entity_name#15518693)#15517949, normalize_location(city#15518694)#15517962, normalize_location(state#15518695)#15517976, normalize_location(country#15518696)#15517991], [pythonUDF0#15520033, pythonUDF1#15520034, pythonUDF2#15520035, pythonUDF3#15520036]
(126) Project
Output [5]: [brand_context_id#15518691 AS e_brand_context_id#15518431, supplier_id#15518692 AS e_supplier_id#15518432, pythonUDF0#15520033 AS e_normalized_name#15518434, concat_ws(|, coalesce(pythonUDF1#15520034, ), coalesce(pythonUDF2#15520035, ), coalesce(pythonUDF3#15520036, )) AS e_location_key#15518435, create_date#15518702 AS e_create_date#15518436]
Input [11]: [brand_context_id#15518691, supplier_id#15518692, entity_name#15518693, city#15518694, state#15518695, country#15518696, create_date#15518702, pythonUDF0#15520033, pythonUDF1#15520034, pythonUDF2#15520035, pythonUDF3#15520036]
(127) BroadcastHashJoin
Left keys [2]: [u_brand_context_id#15518409, u_location_key#15518418]
Right keys [2]: [e_brand_context_id#15518431, e_location_key#15518435]
Join type: Inner
Join condition: None
(128) Project
Output [7]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
Input [10]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, u_location_key#15518418, e_brand_context_id#15518431, e_supplier_id#15518432, e_normalized_name#15518434, e_location_key#15518435, e_create_date#15518436]
(129) BatchEvalPython
Input [7]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
Arguments: [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520037]
(130) Filter
Input [8]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436, pythonUDF0#15520037]
Condition : (cast(pythonUDF0#15520037 as double) >= u_threshold#15518413)
(131) Project
Output [6]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
Input [8]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_threshold#15518413, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436, pythonUDF0#15520037]
(132) BatchEvalPython
Input [6]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436]
Arguments: [calculate_similarity(u_normalized_name#15518414, e_normalized_name#15518434)#15518489], [pythonUDF0#15520038]
(133) Project
Output [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, pythonUDF0#15520038 AS similarity#15518490]
Input [7]: [u_brand_context_id#15518409, u_supplier_id#15518410, u_normalized_name#15518414, e_supplier_id#15518432, e_normalized_name#15518434, e_create_date#15518436, pythonUDF0#15520038]
(134) Sort
Input [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
(135) WindowGroupLimit
Input [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Partial
(136) Exchange
Input [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490]
Arguments: hashpartitioning(u_brand_context_id#15518409, u_supplier_id#15518410, 10), ENSURE_REQUIREMENTS, [plan_id=4325322]
(137) Sort
Input [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409 ASC NULLS FIRST, u_supplier_id#15518410 ASC NULLS FIRST, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], false, 0
(138) WindowGroupLimit
Input [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490]
Arguments: [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST], row_number(), 1, Final
(139) Window
Input [5]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490]
Arguments: [row_number() windowspecdefinition(u_brand_context_id#15518409, u_supplier_id#15518410, similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS rank#15518510], [u_brand_context_id#15518409, u_supplier_id#15518410], [similarity#15518490 DESC NULLS LAST, e_create_date#15518436 ASC NULLS FIRST, e_supplier_id#15518432 ASC NULLS FIRST]
(140) Filter
Input [6]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490, rank#15518510]
Condition : (rank#15518510 = 1)
(141) Project
Output [2]: [u_brand_context_id#15518409 AS brand_context_id#15518530, u_supplier_id#15518410 AS supplier_id#15518531]
Input [6]: [u_brand_context_id#15518409, u_supplier_id#15518410, e_supplier_id#15518432, e_create_date#15518436, similarity#15518490, rank#15518510]
(142) SortMergeJoin
Left keys [2]: [brand_context_id#15518655, supplier_id#15518656]
Right keys [2]: [brand_context_id#15518530, supplier_id#15518531]
Join type: LeftAnti
Join condition: None
(143) Project
Output [10]: [brand_context_id#15518655, supplier_id#15518656, declaring_supplier_id#15518662, supplier_type#15518661, supplier_id#15518656 AS canonical_id#15518603, 1 AS is_primary#15518604, threshold#15518665 AS configured_threshold#15518605, 0.0 AS match_percentage#15518606, 0.0 AS confidence_score#15518607, new_canonical AS match_reason#15518608]
Input [5]: [brand_context_id#15518655, supplier_id#15518656, supplier_type#15518661, declaring_supplier_id#15518662, threshold#15518665]
(144) Union
(145) AdaptiveSparkPlan
Output [10]: [brand_context_id#15516344, supplier_id#15516345, declaring_supplier_id#15516351, supplier_type#15516350, canonical_id#15518301, is_primary#15518365, configured_threshold#15518366, match_percentage#15518367, confidence_score#15518368, match_reason#15518369]
Arguments: isFinalPlan=false
(146) TableCacheQueryStage
Output: []
Arguments: 0
(147) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#15522710L]
Results [1]: [count#15522711L]
(148) Exchange
Input [1]: [count#15522711L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4325354]
(149) ShuffleQueryStage
Output [1]: [count#15522711L]
Arguments: 1
(150) HashAggregate [codegen id : 2]
Input [1]: [count#15522711L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#15522557L]
Results [1]: [count(1)#15522557L AS count#15522558L]
(151) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#15522710L]
Results [1]: [count#15522711L]
(152) Exchange
Input [1]: [count#15522711L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4325252]
(153) HashAggregate
Input [1]: [count#15522711L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#15522557L]
Results [1]: [count(1)#15522557L AS count#15522558L]
(154) AdaptiveSparkPlan
Output [1]: [count#15522558L]
Arguments: isFinalPlan=true