Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Link across Datasets

Run the link phase to match records across two separate datasets using your trained Zingg model.

The link phase is used when you have two datasets that are individually duplicate-free but need to be matched against each other. Common use cases include reference data mastering, data enrichment, and linking records from different source systems.

Link uses the same trained model as match. The output structure is identical to match output, with one additional column: z_source, which identifies which source dataset each record came from.

Output Fields

Link output contains all input fields plus four Zingg-generated columns:

  • Z_CLUSTER - unique identifier shared by all records resolved as the same entity across both datasets. In Enterprise this is the persistent Zingg ID.

  • Z_MINSCORE - lowest similarity score within the cluster.

  • Z_MAXSCORE - highest similarity score within the cluster.

  • Z_SOURCE - the source dataset each record came from. Use this to trace each resolved record back to its origin system.

Python

options = ClientOptions([ClientOptions.PHASE, "link"])
zingg = Zingg(args, options)
zingg.initAndExecute()

CLI

./scripts/zingg.sh --phase link --conf config.json

Read and View Output

output = spark.read.csv(
    "/tmp/febrlLinkOutput",
    header = True
)
display(output)

Python

options = ClientOptions([ClientOptions.PHASE, "link"])
zingg = EZingg(args, options)
zingg.initAndExecute()

CLI

./scripts/zingg.sh --phase link --conf config.json

Read and View Output

# Read link output
output = spark.read.csv(
    "/tmp/febrlLinkOutput",
    header=True
)
display(output)

Enterprise link output includes Zingg ID instead of Z_CLUSTER, plus the Z_SOURCE column identifying the source dataset of each record.

CLI

Enterprise link output includes Zingg ID instead of Z_CLUSTER, plus the Z_SOURCE column identifying the source dataset of each record.

Last updated

Was this helpful?