Most of Your Backfills Didn't Have to Happen 0 ▲ Luminousmen Blog - Python, Data Engineering & Machine Learning 118 days ago · Tech · hide · Fediverse post A teammate finds a bug that's been quietly corrupting the last month of data. A two-line fix. To clean up the history, they re-run the pipeline over the last thirty days and head to lunch. They come back to doubled revenue — what a productive lunch huh?? Almost seems too good to be true! Ok, what actually happened — the job wrote with INSERT in append mode, so re-running it didn't replace the old rows, it stacked new ones on top of them. Month of data, counted twice. Every dashboard downstream now shows a company that overnight started selling twice as much as it did yesterday. The bug fix was two lines. Cleaning up after the fix, however, was a full day of deleting duplicate partitions, re-running with the right write mode, and explaining to people why the whole weekend's numbers were fiction. The job that was supposed to fix an incident instead became one. That's a backfill: re-running a pipeline over old data to rewrite pa Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town