DATA OPS

Comment on dbt Pull Requests With Upstream Schema Impact

On every dbt repo pull request, cross-checks the changed models against live BigQuery source schemas and posts a PR comment flagging any model that references a column the source…

CategoryData Ops
Enginesim
Difficultyadvanced
Triggerevent
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerPull request opened or updated on dbt repoGitHubGitHub
  • ActionParse changed models and referenced source columnsGitHubGitHub
  • ActionQuery live BigQuery source column setsGoogle BigQueryBigQuery
  • LogicCollect references to missing or renamed columns
  • OutputPost impact comment on the GitHub PRGitHubGitHub

What it does

On each pull request to your dbt repository, this checks the models touched in the PR against the current BigQuery source schemas. If a model selects or joins on a column that the upstream source has since dropped or renamed, it posts a clear PR comment so the change is fixed before merge, not after a failed run.

When to use it

Use it when schema drift surfaces as broken builds after merge and you want a pre-merge guardrail in code review. Ideal for analytics teams practicing PR-based dbt development who want CI-time confidence that models still match live sources.

How it works

  1. 1A GitHub pull-request event triggers the check.
  2. 2The PR's changed dbt model files are read and their referenced source columns are parsed from the GitHub diff.
  3. 3BigQuery is queried for the current column set of each referenced source table.
  4. 4A logic step compares referenced columns against live columns and collects any mismatches.
  5. 5If mismatches exist, a GitHub PR comment is posted naming each model, the missing column, and the source table.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect BigQueryDatasets, queries, schemas.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.