Reviewability is a data platform feature
In brief
A reviewer should be able to tell which business results a data change will alter before approving it.
- Show the compiled SQL, the affected downstream consumers, and checks suited to the change.
- Use the same model for scheduled runs and backfills so the reviewed logic reaches production.
A data platform is reviewable when someone can tell what a change will do before it reaches production.
A repository isn’t reviewable merely because transformations live in Git. The reviewer needs to see the decision, compiled behavior, affected objects, data risk, and operational path without a guided tour from the author.
That capability affects delivery speed as directly as runtime performance. When changes are expensive to understand, teams either move slowly or approve from trust in the person rather than trust in the system.
Review the semantic change
A useful pull request explains what business meaning changed.
Changing a join, filter, key, or time boundary can alter grain, history, and downstream metrics even when the SQL diff is small. The model should state one-row meaning, key, materialization, freshness, and important assertions close enough that the reviewer can compare the new contract with the old one.
Names and layers matter. A file called customer_activity.sqlx should define customer activity, not invoke a helper that quietly decides eligibility elsewhere. If the important rule is hidden behind generic macros or workflow flags, the visible diff isn’t the real change.
Show compiled behavior
SQLX, macros, configuration, and environment variables can make source code differ materially from executed SQL. CI should compile the project and expose meaningful changes in the generated actions.
A reviewer should be able to inspect:
- final SQL or operations for changed models
- dependency additions and removals
- materialization and partition changes
- incremental predicates and merge keys
- selected environment values without secrets
- assertions attached to the output
Generated output doesn’t need to flood every pull request. It needs to be available and summarized where the source abstraction hides consequential behavior.
Make blast radius visible
Use the dependency graph to list downstream models, reports, exports, and operational consumers affected by the change. Distinguish direct rebuilds from semantic consumers that won’t automatically fail when meaning changes.
Estimate data impact where practical: partitions rewritten, historical range touched, row-count change, bytes processed, and expected runtime. A one-line predicate change that rebuilds seven years of data deserves a different review than a column description.
Tagging everything “data” isn’t impact analysis. The graph and ownership metadata should identify who needs to care.
Provide evidence proportional to risk
For a low-risk additive column, compilation and schema checks may be enough. A key or grain change may need before-and-after samples, uniqueness tests, reconciliation against the old model, and report validation. An incremental change should prove transition behavior and convergence with a full build.
Use production-shaped fixtures and bounded production comparisons. Synthetic happy paths are useful for logic. They rarely contain the duplicate IDs, late children, null ownership, and timezone damage that made the model interesting. When a small fixture can’t reproduce that, test against a short-lived BigQuery clone you can write to.
The pull request should say what was tested and what remains uncertain. Confidence isn’t a substitute for evidence, although it’s much easier to type.
Keep one route from source to production
Reviewability collapses when scheduled runs, manual repairs, and backfills use different implementations.
The same declarative model should support ordinary execution and wider affected sets. Orchestration may choose schedule, range, and concurrency, but it shouldn’t contain an alternative business definition. Emergency scripts should be retired or promoted into the reviewed path after use.
A change that can’t be reproduced outside the author’s terminal isn’t ready to become shared platform behavior.
Design abstractions for the caller
A helper earns its place when a reviewer can understand the calling model more easily and inspect the helper’s contract independently. It fails when the call site becomes concise but opaque.
Prefer domain-specific names over generic wrappers. resolve_order_currency() carries more useful intent than apply_transform(config). Keep parameter sets small. Avoid Boolean switches that turn one helper into several hidden programs.
Duplication is often cheaper than an abstraction whose behavior varies by context. Review cost, not line count, is the deciding metric.
Include operational behavior
The reviewer also needs to know how the change deploys and fails.
Will it replace a table, merge rows, or delete partitions? Can old and new schemas overlap safely? What happens if the run fails halfway? Can it be retried? Is rollback a code revert, a data restore, or a rebuild? Which alerts will detect a bad outcome?
These questions belong in review because data deployments persist state. Reverting SQL doesn’t automatically revert the rows already written.
Measure whether the platform is reviewable
Useful signals include review cycle time by risk, defects found before merge, emergency fixes after deployment, models with missing owners or tests, and changes that require synchronous explanation from one person. The goal is faster justified approval.
More in this domain: Data
Browse allWhen cold history should stay in BigQuery
Keep cold history in BigQuery when retrieval costs would outweigh the storage savings.
BigQuery global queries or a local serving copy?
A global BigQuery query can suit occasional selective reads. An approved local copy can save transfers when reports repeatedly read the same remote data.
Use BigQuery clones for bounded development work
Use a writable BigQuery clone when a test needs the source data's distribution or history. Use a small fixture when it reproduces the problem.
When external Parquet deserves a native BigQuery copy
Keep Parquet external for occasional reads. A native BigQuery copy can pay off when reports repeatedly scan the same files.
Publish a BigQuery dataset without sponsoring every reader's queries
Publish a BigQuery dataset when readers need SQL and have their own execution project. Offer versioned downloads for readers who just need the data.
Related patterns
BigQuery cost guardrails that won't break your teams
Set BigQuery spending limits by workload so an exploratory scan can't stop a production report.
Incremental models are only safe when change detection is explicit
Use an incremental model when you can identify every output key an upstream change affects more cheaply than rebuilding.
What we keep out of orchestration in data platforms
Let orchestration schedule, retry, and hand off work. Keep the rules that determine a table's contents in its model.
Dataform vs. transformation scripts: keeping warehouse changes reviewable
Use Dataform for shared BigQuery models when reviewers need to see dependencies, materialization, and checks together. Keep simpler standalone work in scripts.