#34405·OpenMetadata

Table Diff never samples when SQL Server is involved

Author: harshachCreated Oct 1, 2026Updated Oct 1, 2026

Problem

Table Diff skips sampling whenever either table is on SQL Server ("Sampling not supported in MSSQL. Skipping sampling."), so a sampled diff of a large SQL Server table still compares every row. Sampling an Azure SQL table fails outright with NoSuchModuleError.

The shared sampling expression can't simply be used on SQL Server:

  • + adds an integer key to the salt instead of concatenating them, which HASHBYTES then rejects.
  • CONVERT renders the digest in upper-case hex, which a case-sensitive collation orders differently from the lower-case nonce.

Fix

Give SQL Server and Azure SQL their own sampling where clause, which hashes integer keys exactly as the other databases do. For other key types, keep comparing every row and log a warning naming the columns.

Source: open-metadata/OpenMetadata