Retry on a half-failed load duplicated 18k rows into the warehouse
A daily Airflow DAG extracts orders, transforms them, and loads to Snowflake. Last night the load task ran a multi-row INSERT, inserted 18,420 rows successfully, then died on the final COMMIT because the warehouse momentarily went unavailable. Airflow marked the task failed and retried it once. The retry ran the same INSERT cleanly. The warehouse now has 18,420 duplicate orders. Walk through what's wrong with the task design, how you'd fix it, and the broader rule this scenario is asking you to internalize.