DATA COMPARISON MISMATCHES / FROM EVIDENCE TO DECISION
Turn a mismatch count into a repair.
Agree the comparison boundary, group observed differences and inspect the affected keys.

This capture compares SQL Server with PostgreSQL. Align snapshots, keys and allowed transformations before reading differences.
Marked on screen: Source and target.ILLUSTRATIVE SCENARIO
360 differences. Three investigations.
A migration team compares a fixed 10,000-row invoice scope.
Keep raw values, approved transformations and unresolved exceptions. Rerun after the responsible owner repairs the boundary.
Null is not an empty string
Null is not an empty string
In PostgreSQL, null means an unknown or absent value; an empty string is a present string with zero characters. A comparison that converts both to an empty string hides that distinction.
SELECT NULL::text IS DISTINCT FROM ''::text AS null_vs_empty,
NULL::text IS DISTINCT FROM NULL::text AS both_null;
In PostgreSQL 18, the results are true and false. If the source has a null customer name and the target has an empty name, investigate the transformation. Do not replace every null with a default merely to make the diff pass. Database engines differ in their treatment of empty strings, so check both vendors' semantics.
Compare timestamp meaning, not display text
Compare timestamp meaning, not display text
2026-10-01 12:00:00+00 and 2026-10-01 05:00:00-07 identify the same instant. A timestamp without an offset does not identify an instant until its timezone is known.
SELECT TIMESTAMPTZ '2026-10-01 12:00:00+00'
= TIMESTAMPTZ '2026-10-01 05:00:00-07' AS same_instant;
The result is true in PostgreSQL 18. For local timestamps, establish the source timezone and how daylight-saving ambiguities were resolved. Compare precision too: a target that truncates microseconds may lose information even when displayed seconds match. Record any accepted precision loss explicitly.
Set numeric tolerance from requirements
Set numeric tolerance from requirements
Suppose the source stores 19.995 and the target stores 20.00. The absolute difference is 0.005. Rounding both to two decimal places could make them agree, but it would conceal that the target lost precision. Exact decimal amounts and approximate measurements may need different acceptance rules.
SELECT abs(19.995::numeric - 20.00::numeric) AS absolute_difference;
The result is 0.005. For an agreed tolerance, compare the absolute difference to that tolerance and handle nulls separately. Define whether the boundary is inclusive. Do not choose a tolerance after seeing the failures just to reduce their count.
These read-only examples use PostgreSQL syntax, not DataDios transformation syntax. See PostgreSQL's comparison predicates, timestamp types, and numeric types.
Setup, interpretation and operating boundaries
Agree table/column mappings, stable comparison keys, cutoff, tolerances and expected transformations before running SmartDiff. It does not create a consistent cross-system snapshot. Use frozen snapshots or staging copies for a row scope, or Query Diff with equivalent WHERE predicates.
Data Source Diff metadata filters such as TABLE_NAME, COLUMN_NAME and COLUMN_TYPE control objects and columns; they are not row-cutoff filters. Inspect mapping and validation messages, then distinguish execution failure from a completed comparison with no differences. Retain raw values when reviewing normalization.
Root cause clusters are deterministic mismatch groupings, not AI causal diagnosis. Retained row samples are bounded to 1,000; displayed samples are not the entire mismatch population. Redshift is not SmartDiff-eligible. Use connector-specific support rather than assuming all browsable sources can be compared.
After repair, rerun the same agreed scope and record exceptions and the acceptance owner. Comparison evidence does not establish application correctness, permissions, performance or recovery readiness.