Data Migration Automation
Datafold performs complete SQL codebase translation and validation. It uses an AI agent architecture that performs the translation leveraging an LLM model with a feedback loop optimized for achieving full parity between migration source and target. DMA takes into account metadata, including schema, data types, and relationships in the source system.
DMA offers several key advantages over deterministic transpilers that rely on static code parsing with predefined grammars:
- Full parity between source and target: DMA not only returns code that compiles, but code that produces the same result in your new database with explicit validation.
- Flexible dialect handling: Ability to adapt to any arbitrary dialect for input/output without the need to provide full grammar, which is especially valuable for numerous legacy systems and their versions.
- Self-correction capabilities: DMA can self-correct mistakes, taking into account compilation errors and data discrepancies.
- Modernizing code structure: DMA can convert convoluted stored procedures into dbt projects following best practices.
Upon delivery, customers get a comprehensive report with links to data diffs validating parity and discrepancies (if any) on dataset-, column-, and row-level between source and target.
Once source and target systems are connected and Datafold ingests the code base, translations with DMA are automatically supervised by the Datafold team. In most cases, no input is required from the customer.
Connect source and target data sources to Datafold. Provide Datafold access to the codebase (usually by installing the Datafold GitHub/GitLab/ADO app or via system catalog for stored procedures).
Datafold is SOC 2 Type II, GDPR, and HIPAA-compliant and provides flexible deployment options, including in-VPC deployment in AWS, GCP, or Azure. The LLM infrastructure relies on local models and does not expose data to any sub-processor besides the cloud provider. In case of a VPC deployment, none of the data leaves the customer’s private network.
After the initial setup, the migration process can take several days to several weeks, depending on the source and target technologies, scale, and complexity.
DMA is an ideal fit for lift-and-shift migrations with parity between source and target as the goal. Some customization is possible and needs to be scoped on a case-by-case basis.
Datafold connects to any SQL source and target databases, similar to how BI tools do.
Datafold does not need to extract the entirety of the datasets for comparisons. Instead, Datafold relies on stochastic checksumming to identify discrepancies and only extracts those for analysis.
Datafold’s cross-database diffing will produce the following results:
- High-Level Summary:
- Total number of different rows
- Total number of rows (primary keys) that are present in one database but not the other
- Aggregate schema differences
- Schema Differences: Per-column mapping of data types, column order, etc.
- Primary Key Differences: Sample of specific rows that are present in one database but not the other
- Value-Level Differences: Sample of differing column values for each column with identified discrepancies; full dataset of differences can be downloaded or materialized to the warehouse
- Via Datafold’s interactive UI
- Via the Datafold API
- On schedule (as a monitor) with optional alerting via Slack, email, PagerDuty, etc.
Yes, users can run as many diffs as they would like with concurrency limited by the underlying database.
In such cases, we recommend using watermarking—diffing data within a specified time window of row creation/update (e.g., updated_at timestamp
).
Datafold performs best-effort type matching for cases where deterministic type casting is possible, e.g., comparing VARCHAR
type with STRING
type. When automatic type casting without information loss is not possible, the user can define type casting manually using diffing in Query mode.
Users can reshape input datasets by writing a SQL query and diffing in Query mode to bring the dataset to a comparable shape. Datafold also supports column remapping for datasets with different column names between tables.