A migration dashboard can show four orders on both platforms, the same total revenue and no loading errors, and the daily revenue report can still be wrong.
I have spent a good part of my career moving workloads off legacy warehouses, and the mistakes that worried me most were rarely the loud ones. A load that fails gets fixed the same morning, because everyone can see it. The dangerous mistake is the one where every row arrives, every dollar arrives, and one order quietly lands on the wrong reporting day. Nothing is red, the totals reconcile, and the finance team finds out three weeks later when a month-end number does not match.
In this article, we will reproduce exactly that failure with four orders, and then build the habit that catches it. The habit is a rehearsal. You capture a consistent extract from Teradata, keep it in Amazon S3 so it cannot change under you, run the migrated workload against it, and compare the outputs that people actually use. S3 gives you an input you can replay as many times as you need, but it is still your team that has to decide what a passing result means.
Start with the workload's acceptance criteria
Snowflake already provides migration tooling, and you should use it where it fits your environment. Its AIM agent for data warehouses covers code conversion, data migration, and validation against the source.
What I add around that tooling is one plain question, asked of each report or pipeline before any data is exported: what evidence will convince the owner of this workload to switch? Writing the answer down early saves a lot of argument later, because the rules are agreed while nobody is yet defending a result.
| Decision | Example acceptance rule |
|---|---|
| Comparison boundary | Both outputs represent the same consistent source snapshot and completed processing interval. |
| Duplicate behavior | Preserve the documented full-row or business-key rule for this workload. |
| Business measures | Compare order count and revenue by business date and currency. |
| Missing values | Required identifiers and reporting dates have no unexpected nulls. |
| Operational behavior | A failed load stops publication, and a retry does not duplicate published records. |
| Performance | The workload meets its agreed completion window under representative concurrency. |
These rules belong to the workload and not to the platform. An append-only event feed and a current-state customer table need different rules for duplicates and for reconciliation, so one checklist for the whole migration will not do.
For money, state the precision, the rounding and the currency explicitly. It is tempting to introduce a small percentage tolerance when a comparison refuses to pass, and I would resist that, because the tolerance usually hides the very defect you are looking for.
Give each rehearsal a stable input
Use a separate S3 prefix for each completed extraction, and describe it with a small manifest such as this one:
json
{ "run_id": "orders_rehearsal_001", "source_snapshot_id": "snapshot_reference_from_extractor", "business_timezone": "America/Chicago", "data_prefix": "s3://example-migration-bucket/teradata/orders/run_001/data/", "objects": ["part-00000.parquet", "part-00001.parquet"], "source_controls": "controls/source_daily.csv", "transform_revision": "git_commit_for_this_rehearsal" } This manifest is something your own application defines. It is not a Snowflake command, so your extraction and orchestration code has to enforce it.
Alongside the run, record the exact file inventory, the checksums, the extraction boundary, the schema and the revision of the source query. Keep the control files outside the data prefix, so that they can never be loaded into the order table by accident.
The source controls must come from the same source state as the exported rows. I have seen teams run a fresh aggregate against a live Teradata table an hour after the export and then spend a day chasing a "migration defect" that was only a timing difference.
A timestamp written into a manifest does not make the extract consistent. Use the consistency mechanism your source supports, or a coordinated pause in writes, and remember that dependent tables need the same boundary.
Treat a completed run prefix as write-once, and enforce that through access controls. S3 Versioning can preserve overwritten object versions, but versioning on its own does not freeze the input to a Snowflake stage. If you need to replay a run, restore the original contents into a new run prefix.
For the extraction itself, Snowflake's Teradata migration documentation describes a WRITE_NOS route for when the source capability and the cloud-storage prerequisites are available, and a driver-based route for when they are not. Choose the one your source environment supports, because S3 does not extract the database for you.
Connect the snapshot to Snowflake
Use a storage integration to connect Snowflake to S3. Its setup involves an AWS IAM role, the identity that Snowflake generates, and the external ID used in the role's trust policy.
The SQL below assumes that the integration already exists and can read the example prefix, and that your session has a database, a schema, a warehouse and the necessary privileges. Replace the bucket and integration names with your own.
sql
CREATE STAGE migration_orders_stage URL = 's3://example-migration-bucket/teradata/orders/run_001/data/' STORAGE_INTEGRATION = migration_s3_integration FILE_FORMAT = (TYPE = PARQUET); CREATE TEMPORARY TABLE rehearsal_orders_raw ( order_id VARCHAR, business_date DATE, amount NUMBER(12, 2) ); COPY INTO rehearsal_orders_raw FROM @migration_orders_stage MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE ; The Parquet files for this simplified example must contain compatible order_id, business_date and amount fields. A real multi-currency workload also needs currency in its schema and in its comparisons.
Inspect the COPY INTO result and confirm that the expected file inventory was loaded. Matching column names tells you the shape is right, and it tells you nothing about whether the values mean what the business thinks they mean.
Keep each candidate run isolated. Snowflake maintains file-load metadata, but that is a separate thing from idempotency in your application. The COPY INTO reference explains that FORCE = TRUE can reload files that were already loaded and so duplicate data. Replaying a snapshot into an empty rehearsal table is much easier to reason about than appending it again and again to a shared candidate table.
Reproduce a mistake that global totals miss
Here is the four-order example from the opening. The original output assigns two orders to October 31 and two to November 1. A faulty transformation assigns the $100 order to November 1 as well.
You can read this as a reporting-date conversion mistake, the kind that appears when a timestamp near midnight is converted in the wrong time zone. I supply the incorrect date on purpose in the example. Snowflake does not change dates on its own, and the fault here belongs to the transformation.
| Check | Source output | Migrated output | Result |
|---|---|---|---|
| Total orders | 4 | 4 | Pass |
| Total revenue | $1,000.00 | $1,000.00 | Pass |
| October 31 revenue | $300.00 | $200.00 | Fail |
| November 1 revenue | $700.00 | $800.00 | Fail |
The query below is self-contained, so you can paste it into a worksheet and run it. source_daily stands for the controls exported from the consistent source snapshot, and target_orders stands for the transformed candidate output. In a real migration you would replace these two inputs with your actual controls and candidate tables.
sql
WITH source_daily ( business_date, expected_rows, expected_revenue ) AS ( SELECT '2026-10-31', 2, 300.00 UNION ALL SELECT '2026-11-01', 2, 700.00 ), target_orders (order_id, business_date, amount) AS ( SELECT 'O-100', '2026-11-01', 100.00 UNION ALL SELECT 'O-101', '2026-10-31', 200.00 UNION ALL SELECT 'O-102', '2026-11-01', 300.00 UNION ALL SELECT 'O-103', '2026-11-01', 400.00 ), target_daily AS ( SELECT business_date, COUNT(*) AS actual_rows, SUM(amount) AS actual_revenue FROM target_orders GROUP BY business_date ) SELECT COALESCE(s.business_date, t.business_date) AS business_date, s.expected_rows, t.actual_rows, s.expected_revenue, t.actual_revenue, CASE WHEN s.business_date IS NULL OR t.business_date IS NULL OR s.expected_rows <> t.actual_rows OR s.expected_revenue <> t.actual_revenue THEN 'FAIL' ELSE 'PASS' END AS validation_status FROM source_daily AS s FULL OUTER JOIN target_daily AS t ON s.business_date = t.business_date ORDER BY business_date; The output is:
| Business date | Expected rows | Actual rows | Expected revenue | Actual revenue | Status |
|---|---|---|---|---|---|
| 2026-10-31 | 2 | 1 | 300.00 | 200.00 | FAIL |
| 2026-11-01 | 2 | 3 | 700.00 | 800.00 | FAIL |
Both days fail, even though the grand totals matched. The full outer join also exposes dates that exist on only one side. The example assumes that reporting dates and amounts are never null, and in a real dataset you should check that assumption separately.
Daily controls narrow the search, but matching daily totals still cannot prove that the rows are equivalent. For critical outputs, compare records by the agreed key and explain every difference. Preserve duplicate counts where they carry meaning, because a comparison of distinct sets can hide an error in how many times a row appears.
Test the Teradata behaviors your workload depends on
A date boundary is one useful fixture, and Teradata's own behavior supplies several more.
Snowflake's Teradata DDL translation reference explains that Teradata SET tables prevent duplicate rows and that Snowflake does not preserve those semantics automatically. If your workload has been relying on that for years without anyone remembering it, the only safe thing is to test repeated identical rows explicitly.
Preventing full-row duplicates is also different from enforcing one record per business key. Two rows can share an order identifier and still differ in status or amount. Decide which of the two behaviors the workload needs before you choose a deduplication rule.
Adding a primary key declaration to a standard Snowflake table will not enforce uniqueness either. Snowflake documents that primary key and unique constraints are not enforced on standard tables, and that hybrid tables behave differently.
Build a small set of fixtures around the things your workload really depends on:
| Fixture | Behavior to verify |
|---|---|
| The same complete row arrives twice | The intended full-row duplicate rule survives. |
| Two different versions share a business key | The correct version wins under a deterministic ordering rule. |
| An event occurs near midnight or a daylight saving transition | The documented business date is preserved. |
| Strings differ in case or trailing spaces | Filters and joins follow the intended comparison rules. |
| A load fails and is retried | Publication stops on failure and the retry preserves the intended record counts. |
Write the expected result of each fixture independently of the converted code. If the expected answer is derived from the new implementation, the test will happily reproduce the same mistake and pass.
Keep the check running after the rehearsal
The day-by-day comparison in this article is worth keeping after cutover, because the same class of mistake can return with any later change to the pipeline. If your transformations run in dbt, I have packaged this check as an open-source dbt package, dbt-dataranger, which reconciles a model with the raw table it was built from, one day at a time, and fails the build when a day does not match. You can also write the test by hand from the query above, and what matters is that it runs on every build and not only during the migration.
Make cutover a decision about evidence
Run the source and candidate workloads against aligned inputs for representative processing periods. Include a close cycle, a late-arrival scenario or a retry when those events matter to the business.
For each run, keep the input manifest, the source controls, the transformation revision, the load results, the comparison results and any unresolved differences. Measure completion time and cost on the representative workload as well. This walkthrough gives you no performance benchmark, so those numbers have to come from your own runs.
Publish candidate outputs only after the required checks pass. The first switch can be a single report or a single downstream consumer, with a named owner and a defined fallback point.
For a read-only reporting workload, falling back can be as simple as routing readers to the source output while it is still current. Once applications write to the new platform, going back needs its own plan to reconcile those writes, and an S3 snapshot cannot restore transactions that happened after it was captured.
The practical payoff of all this is a shorter debugging loop. When a comparison fails, the team can rerun the exact input, look at the business slice that was affected, and verify a fix before asking anyone to trust the migrated workload. By the time you reach cutover, the conversation is no longer about whether the migration "looks fine". It is about whether these outputs meet the rules their owners agreed to, and you will have the evidence in hand to answer it.
