n8n result comparison: identity and differences in Compare Datasets
Match records by stable fields before comparing content, then inspect fuzzy comparison, skipped fields and repeated matches.
Match first, compare other fields second · Select the output form for differences · Inspect types, exclusions and multiple matches
At a glance
The goal is to identify changed records across two AI-result datasets. Both inputs need stable ids and known fields. The Compare Datasets documentation was checked and two-stage comparison modeled locally. n8n and model quality were not tested. A field difference does not establish worse model quality.
Input, configuration and output checks
Define input
Inspect identifiers and field types.
Configure the operation
Choose the documented mode and relevant options.
Inspect results
Check mapping and output before downstream use.
Match first, compare other fields second
The documented flow first matches Input A Field with Input B Field, then compares the remaining fields. The exercise uses id on both sides: A has a/old summary and b/same text, while B has a/new summary and b/same text. Check id types and uniqueness before configuration. Array position is not identity; different field names must represent the same identifier, and missing ids must not be invented.
Select the output form for differences
When There Are Differences offers Use Input A Version, Use Input B Version, Use a Mix of Versions and Include Both Versions. Mix also requires Prefer and For Everything Except. The exercise retains both sides for human inspection without treating either as correct automatically. Inspect the resulting structure before downstream use. The option selects retained fields; it does not assess summary accuracy.
Inspect types, exclusions and multiple matches
Fuzzy Compare can treat number 3 and string "3" as equal. If type is part of the contract, it must not hide type drift. Fields to Skip Comparing excludes selected fields such as run timestamps, only after confirming they are outside the comparison goal. Multiple Matches defaults to Include All Matches and can select Include First Match Only, so inspect duplicate ids beforehand. Dot notation controls nested access; a literal dotted key is not a path.
Verify identities and retained versions
The local fixture finds a changed summary for a and identical text for b, and checks duplicates and type differences. It does not reproduce node ports or the full comparison algorithm. Inspect matched, one-sided and changed records, then the retained version data. Stop downstream writes on duplicate identity, exclusion of a target field or conversion hiding a difference. Field comparison still requires separate factual review.
Article sources
Original editorial content; official descriptions and checking suggestions are distinguished.