r/dataengineering • • 10d ago

Discussion AI can migrate a data warehouse now, but how do you actually trust the migrated data?

Was reading abt Devin’s new Databrick migration offering. Apparently they halped migrate a 142 opject data platform in 8 day.

Pretty interesting, but the part i’m more curious abt is data reconciliation rather than the actual code migration.

U can translate oracle sql to spark sql, get all the job running and even have matching row counts. But thing like null handlings, decimal precision or timezone conversion can quitely change the result without throwing any errors

Then there’s incremental load, late arriving data and old business rules buried somewhere in a stored procedure.

For people who have done large DWH migration, how do u actually validate that the new system behave the same as the old one?

Are row counts, checksum and record level diffs enough, or do u usually run both system in parallel for a while before switching over?

Curious how much of that validation you’d be comfortable handing over to an AI agent.

Source: devincentral.com/news/editorial-devin-launches-ai-driven-migration-tool-for-databricks

0 Upvotes

19 comments sorted by

22

u/PrestigiousAnt3766 10d ago

You define some acceptance criteria. I like to generate some fake data with edge cases, test if both outputs are identical.

Years and years of data (corruption) in the old platform means that its impossible to get identical tables.

12

u/CorpusculantCortex 10d ago

Hash diff checks the same way you validate any data migration?

7

u/Mo_Steins_Ghost 10d ago

Me: AI can you run a diff check.

AI: Diff check checks out.

Me: Okay.

AI to his AI friends: So then he asked me to do the validation and, get this, I lied!

4

u/CorpusculantCortex 10d ago

Believe it or not, diff checks are pretty easy to script and validate manually...

3

u/Mo_Steins_Ghost 10d ago edited 10d ago

As a senior manager with 30 years under my belt, I know that. You know that.

But believe it or not, the next class of data engineers entering the field are going to use AI to do it.

I prefer that they don't, but corporate recruiting and personnel budgets are going to be built around lowest cost and that means either hiring someone cheap who can push the "AI button" (or, worse, exec is going to mock something up in Claude and want a magic button that pushes his custom dataset straight through to prod, skipping CI/CD/QA entirely) or just eliminating entry level roles all together and forcing us to use AI agents to handle baseline tasks like validation, monitoring and triage.

EDIT: They are already in the process of doing all of the above...

EDIT 2: I'm retiring in 8 years. Thank god.

1

u/CorpusculantCortex 10d ago

I mean sure, but the flip side of my point is that it is relatively simple, so ai monitored by someone who knows what they are doing can definitely manage it. As long as whoever pushes the ai button knows how to validate it. An important part of any field adopting new technology is identifying where the pitfalls are and building best practices around it. Like not trusting ai that will continue to be untrustworthy and prone to significant hallucination for at least another 5-10 years. Which is up to more experienced people to define and implement and train more junior people and students on.

2

u/Mo_Steins_Ghost 10d ago edited 10d ago

EDIT: the other problem is that sure, you can run a diff check, but if then trying to RCA the diff, and the AI wrote 250,000 lines of code, guess who you will be asking to debug itself... It takes you far more time (that you won't be given) to debug code you didn't write even if it's just 2500 lines of code. AIs can write so MUCH code it will, months or weeks or days from now, be impossible for you to RCA and debug it without agents doing it for you.

The person who understands it more than most happens to be my brother. At AMD, he owned the teams that validate the GPUs that power AI clusters (more specifically the design engineers doing on-chip hardware testing and validation of the Instinct MI200, MI250, MI350, readying them for clients like Google, Microsoft, OpenAI, Anthropic, HPE, etc.) He retired yesterday.

The problem is that what's under the hood and being transmitted to centralized AI clusters is not really well understood by those implementing it. By "not really well understood" I mean "they have no fucking clue what it's actually doing with your data". I spent six years of my 30 in cybersecurity, and I have massive security concerns about this.

But there's no going back. You guys in the trenches aren't going to be given a choice on what to automate and what to do manually. That's not coming from my strata either. We are being told... because every ELT is convinced1 that if they don't adopt, they will be left behind while others increase their productivity 100x...

  1. Side note: It doesn't matter if the claim is BS. ELTs have already bought into it, and already built their 3 year plans and boards have already approved the corporate budgets around it.

1

u/CoolmanWilkins 9d ago

Yep I am in the next class of data engineers and I used AI to do it. To be fair yeah I reviewed the diff check script manually since that was the most important part. But then used AI to find and fix all the issues causing the diffs.

As for the Claude mockup example, that is already happening at my company too. We have developed a policy to allow for certain usecases like that for prototyping but require things to go through engineering before we call it a 'product' and use for clients. Since you can imagine the AI slop apps are genuinely fun to create for non-engineers but we have to balance that with the obvious implications for code and design quality.

There are a bunch of challenges with how the work is changing but honestly I am having more fun as a data engineer with AI.

1

u/Ok-Rope-7956 8d ago

Not on the eng side myself, but I work pretty closely with our product team and this sounds a lot like how they work. Most of their mockups are done with claude now, but once it gets to actual implementation it goes through a lot of hands-on checking by people. We also have people inside the company keep using our own product day to day and report bugs or anything annoying right away, which tends to catch stuff the checks miss.

1

u/arcrad 10d ago

2 way minus, hash checks, aggregate and window comparisons, row counts...

Lots of ways to validate data migration

1

u/DeepLogicNinja 10d ago

Replace AI with Human. Answer varies. The intelligence the AI has is a huge factor, and it’s always GIGO (garbage in / garbage out). Data cleansing process is still the same.

1

u/Wonderful-Wind-5736 10d ago

But thing like null handlings, decimal precision or timezone conversion can quitely change the result without throwing any errors

Duude, I am working on a project that addresses these issues. Post will be up as soon as the mods approve it.

1

u/reddit_sage69 10d ago

I mean. You can build all of that testing with the migration, especially with dbt core (unit tests, freshness, logic testing, nulls, etc)

1

u/No-Acanthisitta9390 Lead Data Engineer 17h ago

> Are row counts, checksum and record level diffs enough or do u usually run both system in parallel for a while before switching over?

Actually I think row counts, checksum and record level diffs are enough.

The important is run both system in parallel for a while. In a big company no one can say I knonw all logic, so run both in parallel is necessary.

And other way, backup your origin, if new write has bug, because run parallel, you can switch the old way. Maybe that's will cost some money but protect your data.

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/dataengineering-ModTeam 7d ago

Your post/comment was removed because it violated rule #9 (No AI generated content/text).

Your post/comment was reviewed to be AI generated/assisted content/text and removed as a result. We as a community value human engagement and encourage users to express themselves authentically.

This was reviewed by a human