Data Engineer · Step 7 of 8 · 7 min
Using AI assistants safely in data work
Get real speed from AI coding help without leaking data or shipping wrong SQL.
01 · Where AI helps
AI assistants are good at first drafts: a SQL query, a regex, a Python function to parse a messy file, a test you forgot, documentation for a table. They are also useful for explaining an unfamiliar query or error message.
Used well, they remove the boring parts of the job. You still own the result.
02 · Never paste real data
Data engineers often have access to customer and financial data. Do not paste rows of it into a public chatbot. Share the schema, column names and a few made-up rows instead. The model rarely needs real values to help.
Also never paste connection strings, passwords or API keys. If your company has an approved AI tool with a data agreement, use that one, and follow its rules.
03 · Check SQL like you check a junior's work
AI-written SQL often runs and is still wrong. It may guess column meanings, use a join that duplicates rows, or ignore nulls. Run it on a small sample, check the row count and the grain, and compare one total with a number you trust.
Be most careful with anything that changes data: DELETE, UPDATE, DROP or MERGE. Read every line, run it on a copy first, and never let an assistant run these on production by itself.
04 · AI in the data itself
More pipelines now call language models, for example to classify support tickets or extract fields from documents. Treat model output as untrusted input: validate its format, log what went in and out, and test on known examples.
05 · Try it
06 · Check yourself
Read alongside
L013Staying safe · 1 min
What not to paste into AI
Treat a chatbot like a public place: never paste anything you would not want a stranger to read.
L014Staying safe · 2 min
Check what AI tells you
Use AI for a first draft of the truth, then check anything that matters before you act on it.
L023AI at work · 2 min
Review AI like a manager
Treat AI like a fast, eager new hire: give clear briefs, check the work, and give specific feedback.