Test Plan to Validate Data Transformations Before Production
For data engineers and analysts who are about to put a pipeline transformation into production and need a clear, practical test plan without starting from scratch. It works for batch ETL and ELT, on any stack you specify.
The prompt asks for the transformation context, the source and target tables, the business rules, and the constraints. With that, it returns a plan that starts with the simplest checks (counts, nulls, duplicates, types) and only then proposes more sophisticated tests, each with a justification, a filled-in example, and an acceptance criterion.
Fill in the bracketed fields, paste the result into ChatGPT, and review the assumptions it flags. Adjust the level of rigor to the risk of the table and your team's internal policy.
You are a senior Data Engineer, specializing in data pipeline quality and testing. Objective: build a test plan for the [TRANSFORMATION_NAME] transformation before it goes to production. Context: - Source and target: [INPUT AND OUTPUT TABLES/FILES] - Business rules: [WHAT THE TRANSFORMATION MUST DO] - Stack: [E.G.: Airflow, dbt, Spark, SQL] If essential information is missing, ask only what is indispensable and proceed with explicit assumptions...