I'm reviewing more changes and want a reliable way to check the implementation and its downstream effects. The code is mostly PySpark and SQL data pipelines. What does your review process look like?
How do you review a pull request without missing the big stuff?
Answers
I would start with the purpose of the change, before digging into individual lines. What should the data look like afterward, and which jobs or consumers depend on it? Then check whether the chosen operation actually produces that result, including what happens to nulls and unexpected inputs.
After that, go through the implementation for correctness, unnecessary complexity, and tests. Check that it merges cleanly and passes CI, but don't treat either as proof that the output is right. If the reasoning isn't clear from the change, leave questions or talk it through with the author before approving.
Reply to this answer
For pipeline changes, I'd keep a small checklist for silent data problems. On joins, check whether keys can be null or duplicated on either side. Compare row counts before and after against what the join is supposed to do. A fan-out can give you plausible looking data with extra rows.
Also check for renamed, dropped, or type-changed columns that downstream jobs read. Think through what happens if the job runs again, especially if it writes data rather than just transforming it.
Reply to this answer
Turn recurring review comments into a checklist, then automate the mechanical ones where practical. Static analysis or configured checks can catch some repeat issues and leave more review time for logic and downstream behavior. Keep updating the checklist as new failure modes come up.
Reply to this answer
Scale the review to the risk. A small, isolated change may be clear from the diff and its tests. A change to a shared dataset or join deserves a closer look at consumers, edge cases, and expected output. Notes made during review can make a quick conversation with the author much more focused.
Reply to this answer
Add your answer
Answers are reviewed before publication.
q.746!buttoncaper:
Row counts are a useful clue, though they need an expected result. A join that intentionally filters rows won't necessarily preserve the count.