DATA OPS

Schema-Drift Gate Before Snowflake DDL Deploy

Triggered by a webhook from your CI pipeline, it checks whether the target Snowflake table already drifted from its BigQuery source before applying new DDL.

CategoryData Ops
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerCI pre-deploy webhook with table nameHTTP webhook
  • ActionRead BigQuery source schemaGoogle BigQueryBigQuery
  • ActionRead Snowflake target schemaSnowflakeSnowflake
  • LogicDecide pass or block on drift
  • OutputReturn allow/block decision to CIHTTP webhook

What it does

This workflow acts as a pre-deploy guard. When CI is about to apply DDL to a Snowflake table, it first confirms the table still matches its authoritative BigQuery schema. If unexpected drift is present, it fails the gate and returns the conflicting columns so the pipeline stops before layering a new migration on top of an inconsistent base.

When to use it

Use it when manual hotfixes or out-of-band ALTERs sometimes hit Snowflake directly, and you want CI to refuse to deploy until the table is reconciled with BigQuery. It prevents migrations from silently compounding drift.

How it works

  1. 1An HTTP webhook from the CI pipeline triggers the check with the target table name.
  2. 2It reads the BigQuery schema for that table.
  3. 3It reads the current Snowflake schema for the same table.
  4. 4A logic step compares them and decides pass or fail.
  5. 5The webhook responds with an allow/block decision plus the offending columns, which CI uses to halt or proceed.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect SnowflakeWarehouses, queries, shares.
  3. 3
    Connect HTTP webhookTrigger any URL on agent actions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.