Blog
Which 10% is wrong?
By Debjani Dhar, Co-founder and CEO · Published · 8 minutes read
The short answer
A conversion pass rate tells you how many objects are wrong, not which ones. If the wrong ones cannot be located, every object still has to be checked, so a 90% pass rate saves far less work than it suggests. Ask any vendor for the list of failed objects and the evidence for each passed one, not the rate. Rules-based conversion helps because a wrong rule fails the same way everywhere, so the failures are found together and fixed once.
“It converts 90% correctly” is the most persuasive sentence in migration sales. It sounds like most of the job is done before you start.
Here is the question to ask next: which 10%?
The arithmetic nobody shows you
Take an estate of 1,500 objects, as an illustration. At a 90% pass rate, 150 objects are wrong. That is a manageable number to fix, if you know which 150.
If you do not, you have 1,500 objects to check, because any of them could be one of the 150. The rate describes the estate. It tells you nothing about the object in front of you.
| Pass rate (illustrative) | Objects wrong, of 1,500 | Objects to check if nobody knows which |
|---|---|---|
| 90% | 150 | 1,500 |
| 95% | 75 | 1,500 |
| 99% | 15 | 1,500 |
A better rate shrinks the first column and leaves the last one alone. That is why teams who start with a fast, impressive conversion so often stall at validation: the converting was quick, and the checking is the whole estate.
Why even 99.9% leaves the question open
It is tempting to think the problem goes away as tools improve. It does not, because an estate needs every object right, not most of them. If each object is converted correctly with probability p, independently, the chance that all N are correct is p multiplied by itself N times.
| Per-object accuracy | Wrong objects expected, of 1,500 | Chance the whole estate is correct |
|---|---|---|
| 90% | 150 | Effectively zero |
| 99% | 15 | About 0.00003% |
| 99.9% | 1.5 | About 22% |
| 99.99% | 0.15 | About 86% |
Even at one error in ten thousand, there is about a one-in-seven chance that something in the estate is wrong. The need to check every object never goes away. What changes is how expensive the checking is, and whether the errors can be found.
Why the kind of error matters
Errors come in two kinds. Some are systematic: the same mistake, made the same way, every time a pattern appears. Others are scattered: one-off mistakes with no pattern to them.
A rule that is wrong produces systematic errors. That sounds worse and is much better. Find the mistake once and you have found every case of it; fix the rule and every object that uses it is fixed on the next run.
A language model’s mistakes tend to be scattered. Each one has to be found on its own, and fixing one teaches you nothing about where the next one is.
Errors that compile and still change the numbers
The wrong objects are hard to locate because they do not fail. Two SQL dialects can accept the same statement and return different results. All of these run without error on Databricks.
| Area | Source behavior | Databricks SQL behavior |
|---|---|---|
| Integer division | SQL Server: 5 / 2 returns 2 | 5 / 2 returns 2.5 |
| Year difference | SQL Server DATEDIFF counts boundaries crossed: 31 December to 1 January is 1 | timestampdiff counts whole units elapsed: 0 |
| Empty strings | Oracle treats an empty string as NULL | An empty string and NULL are different values |
| String comparison | Teradata compares case-insensitively by default; SQL Server ignores trailing spaces | Case-sensitive and exact |
| Duplicate rows | A Teradata SET table silently discards duplicates | Duplicates are kept |
| NULL ordering | Oracle sorts NULLs last in ascending order | NULLs sort first |
A reviewer reading the converted code sees a division, a date function and a join, all well formed. Nothing on the page says the totals have moved.
Why sampling will not find them
The usual shortcut is to spot-check. Check a sample of objects; within each, compare a sample of rows. The arithmetic is against it.
If a fraction f of rows is wrong and you sample k rows, the chance your sample contains none of the wrong rows is (1 − f) multiplied by itself k times. With one row in a thousand wrong, a sample of 1,000 rows misses the defect about 37% of the time. A boundary-date error that touches only rows on 31 December is rarer still.
This is why a real check compares totals for every column and every row by key, not a sample, and why it has to be automated.
Errors travel downstream
An estate is a graph. A view reads a table that a procedure loads from a staging table that a package fills. One wrong transformation near the start makes every object downstream of it wrong, even where their own conversions are perfect.
So 150 wrong conversions do not mean 150 wrong tables. They can mean many more, and the symptom shows up far from the cause. With no pattern to the errors, each one is traced back through the lineage by hand.
What to ask instead of the pass rate
Five things, and a vendor that has them will be glad you asked.
- The list: which objects failed, and why.
- The evidence: for each object that passed, what proves it gives the same results as the original.
- The rule for counting: is an object that needed a one-line manual fix counted as converted?
- The second run: if you convert the same objects again, do you get the same output?
- The price of a miss: who pays to find and fix the objects that turn out wrong later?
How Novuz answers them
Fixed, versioned rules convert about 95% of objects, with the same output on every run. The objects rules cannot settle are flagged, not guessed: they go to a resolver, and an engineer approves each proposal. Then every object, whichever way it was converted, is reconciled against the original on the same inputs, with a report per object.
So the answer to “which ones are wrong?” is a list, before cutover. Typically 95% or more of objects need no manual edit, and we count a one-line fix as manual.
Key terms
- Pass rate
- the share of converted objects reported as correct. It says how many are wrong, not which.
- Systematic error
- the same mistake made the same way wherever a pattern appears, so it can be found once and fixed everywhere.
- Scattered error
- a one-off mistake with no pattern, which has to be found individually.
FAQ
Frequently asked questions
Is a 90% AI conversion accuracy rate good enough for a migration?
Not on its own. The rate tells you how many objects are wrong, not which ones, so every object still has to be checked. What matters is whether each object is proven against the original before cutover.
Why are rule-based conversion errors easier to fix?
Because a wrong rule fails the same way everywhere. The failures are found together, and correcting the rule corrects every object that uses it on the next run.
What should we ask a migration vendor about accuracy?
Ask for the list of failed objects, the evidence for each passed object, how manual fixes are counted, whether a second run gives the same output, and who pays for objects that turn out wrong later.
Sources
- Research note: the review burden of AI-converted code (novuz.com/blog/research/ai-conversion-review-burden)
- Research note: how accurate is AI code translation? (novuz.com/blog/research/ai-code-translation-accuracy)
- How every object is reconciled (novuz.com/methodology)
About the author
Debjani Dhar is co-founder and CEO of Novuz Inc., the deterministic data warehouse modernization company based in Danville, California. She previously led application modernization programs at Accenture.
Next step
Convert 10 returns ten of your hardest objects converted, with a reconciliation report for each, free and under NDA.
Last reviewed: