Skip to content

feat: support MSSQL snapshot data checks - #642

Open
gnolong wants to merge 9 commits into
mainfrom
feat/mssql-snapshot-struct-check
Open

gnolong wants to merge 9 commits into
mainfrom
feat/mssql-snapshot-struct-check

Conversation

@gnolong

@gnolong gnolong commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Support standalone and inline snapshot checks for SQL Server targets. Fetch rows by composite keys with bounded, parameterized queries and reuse the existing checker after successful writes. Standalone MSSQL snapshot checks apply sampling during extraction. Standalone and inline checks can write INSERT and UPDATE statements to sql.log for missing rows and writable column differences.

Add thirteen MSSQL integration cases using the existing checker suite layout. Snapshot coverage includes missing and differing rows, routed identifiers, sampling and filtering, full-row logs, inline computed-column differences, and recovery after target data catches up. Structure coverage includes matching and differing definitions, repair SQL for a missing index, and recovery after the target index is created.

The basic standalone and inline snapshot fixtures each check 19 rows across eight tables. They cover primary, composite, unique and absent keys, quoted column names, typed values and computed columns. The basic structure fixture checks fourteen objects across seven source tables, with separate missing-table, missing-index, column-difference and index-difference assertions.

Local validation passed formatting, 49 MSSQL-related dt-common and dt-connector unit tests, and compilation of the integration test target.

@gnolong
gnolong marked this pull request as ready for review November 30, 2026 09:45
…truct-check

# Conflicts:
#	docs/en/config.md
#	docs/en/snapshot/check.md
#	docs/zh/config.md
#	docs/zh/snapshot/check.md
#	dt-common/src/config/task_config.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant