Merge duplicate records into a composite golden record
Per-group — reads the whole group in one call.
GOLDEN_RECORD({{ records }})| name | type | description |
|---|---|---|
| records | VARCHAR | JSON record or struct to aggregate |
Creates golden record from duplicate customer records
WITH
test_data AS (
SELECT
*
FROM
(
VALUES
(
'{"name": "JOHN SMITH", "email": "john@gmail.com", "phone": null}'
),
(
'{"name": "John Smith", "email": null, "phone": "(555) 123-4567"}'
),
(
'{"name": "John Q. Smith", "email": "john.smith@gmail.com", "phone": "555-123-4567"}'
)
) AS t (record)
)
SELECT
GOLDEN_RECORD (record)
FROM
test_dataDeduplicates texts by semantic similarity (embeddings + threshold graph)
LLM-backed deduplication (escape hatch for DEDUPE)
Merge records with an explicit conflict-resolution strategy
Check if two values refer to the same entity (fuzzy equality)
Merge duplicate records into a composite golden record
Per-group — reads the whole group in one call.
GOLDEN_RECORD({{ records }})| name | type | description |
|---|---|---|
| records | VARCHAR | JSON record or struct to aggregate |
Creates golden record from duplicate customer records
WITH
test_data AS (
SELECT
*
FROM
(
VALUES
(
'{"name": "JOHN SMITH", "email": "john@gmail.com", "phone": null}'
),
(
'{"name": "John Smith", "email": null, "phone": "(555) 123-4567"}'
),
(
'{"name": "John Q. Smith", "email": "john.smith@gmail.com", "phone": "555-123-4567"}'
)
) AS t (record)
)
SELECT
GOLDEN_RECORD (record)
FROM
test_dataDeduplicates texts by semantic similarity (embeddings + threshold graph)
LLM-backed deduplication (escape hatch for DEDUPE)
Merge records with an explicit conflict-resolution strategy
Check if two values refer to the same entity (fuzzy equality)