How do you put analyst-written SQL and Python into production without rebuilding it?

Keep the code and add what production code has around it: tests on inputs and outputs, version control, monitoring, a schedule on your shared data platform, and a review step for changes. Analyst scripts usually work. What they lack is anything that catches a renamed column or an expired token before a VP does. DataKitchen calls this Vibe to Prod.

Key points

  • Analyst-written SQL and Python, often built with AI coding tools, usually works when it ships. It fails later because it has no tests, no version control, and no monitoring, so a renamed column or expiring API token breaks it silently.
  • DataKitchen's September 2026 post on AI-built tools puts building one at about 20% of the work. Keeping it running is the other 80%, and that part never ends.
  • In Stack Overflow's 2025 Developer Survey of 49,000 developers, 84% use or plan to use AI coding tools, but only 29% trust the output to be accurate.
  • Rebuilding analyst code from scratch loses the speed that made it valuable. Wrapping it in tests, git, monitoring, and a review gate keeps the logic and the author's right to change it.
  • Vibe to Prod is DataKitchen's service for this: it takes the code as it is, adds tests, version control, and monitoring, runs it on your Databricks or Snowflake, and leaves you a development copy to keep changing.

Say an analyst writes a SQL script that scores call notes. It works. Two other teams ask for copies. Six months later, finance uses its output to true up bonuses, it runs off a laptop when someone remembers to run it, and nobody has looked at it since it shipped.

That’s the problem: code built outside the data team that the business now depends on, with none of the machinery production code normally gets. AI coding tools made it common. In Stack Overflow’s 2025 Developer Survey of 49,000 developers, 84% use or plan to use AI coding tools, and only 29% trust the output to be accurate. Those are professionals who review code for a living. The analyst’s script hasn’t had that review.

DataKitchen’s You Built the Thing. Now You’re Stuck Running It. puts building at about 20% of the work. Running it is the other 80%, and that part never ends.

The code isn’t the problem

The script usually works on the day it ships. What breaks it is everything around it. A column gets renamed and the dashboard fails silently. An API token expires every 90 days. A join quietly drops 3% of rows, and nobody finds out until someone is underpaid. A database password sits in plain text. None of that is a coding error. It’s missing machinery.

GapWhat happens without itWhat closes it
No testsA join drops 3% of rows and the report still rendersTests on inputs and outputs
No version controlNobody can say which version produced last quarter’s number, and there’s nothing to roll back toGit, with every change reviewed
No monitoringA renamed column is found by a VP who already forwarded the chartFreshness, volume, and schema monitors
Runs on a laptopIt runs when someone remembersA schedule on the shared platform
Credentials in the scriptA password in plain text, a token that expires unnoticedSecrets held by the platform, owned by IT

Why rebuilding is the wrong default

The post lays out three usual exits, and each one loses something. Keep running it yourself, and it fails in public during your vacation. Hand it to IT, and a careful rebuild arrives in 2027 doing less than what you have now. Pay an outside firm by the hour, and the code becomes theirs.

IT’s caution is earned. They get paged when it breaks and answer to audit. But a rebuild throws away the part that works, which is the business logic, to get the part that’s missing, which is the machinery. Add the machinery and keep the logic.

The test rule from The Seven Deadly Sins of AI-Generated Data Pipelines applies here too: an agent never grades its own homework. If AI wrote the code, a test written by someone else, or generated from the real data, has to check it.

Vibe to Prod

DataKitchen’s name for this is Vibe to Prod. The term borrows from vibe coding, building software by describing it to an AI tool and accepting what it writes. The service takes the code as it is. DataKitchen engineers fix what the AI got wrong, add tests, git, and monitoring, fit it into your Databricks or Snowflake, and run it. You keep a development copy and the right to change the logic with any AI tool. Changes pass the tests, get a quick review, and go live.

Everyone in data is about to spend 80% of their time talking to a language model explains why this gets bigger: once everyone can generate code, everyone will, and there’s no “promote to prod” button in a chat window. Somebody has to build one: tests, a review gate, and a promotion process.

It’s a paid service, run by the engineers behind DataKitchen’s AI data engineering work. The table above works without buying anything, if you have an engineer with the time. Most teams in this spot don’t, which is how the script ended up on a laptop.

Frequently asked questions

Short answers to the follow-up questions people ask next.

Why does analyst-written SQL and Python break in production?

Because everything it depends on keeps changing after it ships. Schemas change, vendors deprecate endpoints, an API token expires every 90 days, a laptop gets replaced. A professional data team has tests, version control, and monitoring that catch each break. An analyst's script usually has none of those, so it fails silently, and the first alert is a VP forwarding a wrong chart.

Should IT rebuild analyst code before it goes to production?

Usually not. A rebuild goes into a queue, gets scoped, and arrives months later doing less than the analyst's version, and the speed that made the tool valuable is gone. IT's caution is earned, because they get paged and answer to audit. The better route keeps the code and adds the tests, version control, monitoring, and review that IT needs to trust it.

What does analyst code need before it runs in production?

Five things: tests on its inputs and outputs, version control so every change is tracked and reversible, monitoring so a failure reaches the team before a reader, a schedule on the shared data platform instead of a laptop, and a review step for changes. Credentials move out of the script and into the platform. The business logic itself can stay as written.

What is Vibe to Prod?

Vibe to Prod is DataKitchen's service for running code that analysts and business users built, often with an AI tool. DataKitchen engineers take the scripts as they are, fix what the AI got wrong, add tests on inputs and outputs, git version control, and monitoring, and run them on your Databricks, Snowflake, or other platform. You keep a development copy and the right to change the logic.

Who owns the code after it moves to production?

The analyst keeps ownership of the ideas and the business logic. Under Vibe to Prod, you get a development environment with a copy of the production code and can keep changing it with any AI tool. Changes pass the tests, get a quick review from a DataKitchen engineer, and go live. What moves to DataKitchen is the 2am phone call, the schema fixes, and answering to IT and security.

Try it on your own data

DataOps TestGen is free and open source. Profile a table and generate its tests this afternoon.