Pipelines¶
A pipeline chains data steps into one run. Where a data step is a single query, a pipeline is the order they run in, what depends on what, and what should happen when something is or isn't true.

Building one¶
Pipelines → New. The canvas is a graph: each node is a step, each edge is a dependency. Drag to connect, and the layout arranges itself.
A step's dependencies determine when it runs — a step with two upstream dependencies waits for both.
Conditions on edges¶
An edge can carry a condition, so the downstream step only runs when it's satisfied. Double-click an edge to open the condition editor.
| Condition | Tests |
|---|---|
| Value from previous step data | A named column from what the previous step returned — e.g. NUM_RECS > 0 |
| Previous step row count | How many rows the upstream step produced |
| Previous step status | Whether it completed, failed or was skipped |
| Last successful run age | Hours since this step last completed — "only run if stale" |
| Time of day | Current UTC hour |
| Day of week | Which days it may run |
Combine several with all or any.
Branching on returned data¶
To use Value from previous step data, the upstream data step must have Return data to pipeline enabled — that's the toggle under Advanced ⚙ in the SQL editor. Without it there's nothing stored to branch on, and the condition reports exactly that.
The pattern is a step that returns a single summary row:
SELECT COUNT(*) AS NUM_RECS FROM staging_orders
then an edge testing NUM_RECS > 0.
Picking the field, instead of typing it¶
The field is free text, which is easy to get wrong and easy to get subtly wrong — a column renamed in the SQL, or a name that exists one level down inside a JSON response. Under the condition, Pick a field from real data gives you two ways to see what is actually there:
- Fetch from the step runs it and lists what came back. Deliberately
narrow: a SQL step that only reads, or an endpoint whose method is
GETorHEAD. APOSTis refused by name — running one to fill in a form field would not be a rehearsal. - Paste a response needs nothing from the server. Use it for the steps fetch refuses, for a step that has never run, or when you already have an example to hand.
Either way you get the fields with their current values, and clicking one fills the box.
Nested fields work, with a dot. An HTTPS response often puts the number you care about inside an object:
{ "amount": 1, "base": "USD", "rates": { "EUR": 0.89823 } }
The field here is rates.EUR, not rates. Pointing at rates means
pointing at an object, and the run will stop and say so rather than
quietly treating it as false.
Seeing what a SQL step really passes on
Press JSON beside the results in the SQL editor. That is the exact payload a pipeline step hands to the next one, and it is worth a look when a step has several statements — only the last one's result is passed on, and a grid showing rows from an earlier statement hides that completely. An empty payload says so in words.
A pipeline as a step¶
A step can be another pipeline. The parent waits while the child runs and then takes on its outcome, so a failure inside the child fails the step that called it.
It exists because a condition gates one step, and sometimes you need to gate several. A partner sends you a file; deciding whether it arrived is one test, but processing it is rarely one step. Put those steps in their own pipeline, make that pipeline a step, and the single condition on the edge into it now gates the whole group.
The second use is organisation. A nightly pipeline can call several smaller ones and gate each on its own rule, which keeps one schedule and one place to look rather than several pipelines to run and reconcile separately. The alternative — a separate pipeline for each concern, each with its own trigger — is a legitimate choice, and this is the lever for when it stops being one.
Two things to know:
- A pipeline cannot contain itself, directly or through a chain. That is refused when you save, and refused again by the runner if a cycle somehow reaches it.
- The child is a real run with its own entry in Monitoring, not a subroutine that disappears into the parent's log.
Gating a step with an assertion¶
A condition decides whether a step runs. An assertion decides whether what it produced was right, and what to do about it.
Attach one from the same dialog as conditions — double-click the edge into a step — or, for the first step in a pipeline, double-click the step and choose Edit gates. The first step has no incoming edge, so the edge route cannot reach it.
Per attachment you choose timing (before the step or after it) and
policy (warn, pause or error). An attachment pins the assertion's
version, so editing an assertion never changes what a deployed pipeline
does; only deleting it does, and the run says so when it happens.
Versions¶
Saving a pipeline that's in use creates a new version rather than overwriting the running one. Deployments pin a version, so a new draft doesn't change what production is doing until you promote it.
Related¶
- SQL Data Steps — the nodes
- Deployments — running a pipeline on a schedule
- Assertions — the checks attached here
- Moving data between sources — the two-step shape a transfer takes