Pipeline Spec Overview
Every pipeline is a single YAML spec - one file that declares sources, builds, transforms, destinations, and how the run executes. Specs are validated against a JSON Schema (2020-12) before anything is saved or run, so a spec that passes validate-spec is a spec the engine accepts.
At a glance
- One file, validated up front - checked against a JSON Schema (2020-12) before anything is saved or run.
- Required blocks -
pipeline,mode,sources,builds,destinations. - Optional blocks -
transforms,scheduler,execution. - Stages reference frames by FQN -
sources.*,builds.*,transforms.*.
Top-level keys
| Key | Required | Purpose |
|---|---|---|
pipeline | Yes | Pipeline name (unique, 1-100 chars) |
mode | Yes | batch or stream |
sources | Yes | Where data is read from (min 1) |
builds | Yes | Joins, column picks, SQL queries (min 1) |
transforms | No | Step-based or SQL transformations |
destinations | Yes | Where results are written (min 1) |
scheduler | No | Cron schedule |
execution | No | Spark resources and run settings |
Unknown top-level keys are rejected - the schema is strict (additionalProperties: false).
A complete spec
orders_pipeline.yaml
Fully qualified names
Every stage references data by FQN:
sources.<source>.<asset>- an asset (table, file set, topic, API call)builds.<build>- a build resulttransforms.<transform>- a transform resultdestinations.<destination>.<output>- a destination output (what runs report stages against)
Builds read from sources (or other builds); transforms read from builds; destination outputs read from builds or transforms - never directly from sources.
Settings and connections
Every source and destination has a settings block. Two ways to fill it:
- Inline - connection fields and
authwritten directly in the spec. - Saved connection - just a
connection_name, resolved at runtime from/api/connections(recommended for real credentials).
Code
Merging rules: connection parameters win for connection fields, and inline settings.options win over connection-level options. Auth shapes depend on the provider - see Sources and Destinations.
Options
Most settings and assets accept an options map. Options are schema-validated per provider and format, merged in this order (later wins):
Code
Each option is translated to the underlying Spark reader/writer/Hadoop key (e.g. header → Spark CSV header, path_style_access → fs.s3a.path.style.access). Unknown option keys warn and are ignored.
Validation
Code
Also enforced at validation time:
- Duplicate YAML keys are rejected
scheduler.cronmust be a valid 5-field UNIX cron expression (onlytype: cronis executed;fixed_rate/fixed_delaypass validation but are not implemented)- API pagination parameter names must not collide with
options.params[]names
Per-provider JSON schemas for editors: GET /api/schemas/sources/{mode}/{providerKey}, /api/schemas/destinations/{mode}/{providerKey}, and GET /api/schemas/execution/settings.
How a spec executes
The spec anatomy above is the execution order: sources, then builds, then transforms, then destinations.
- Current offsets are loaded, sources read into frames
- Builds join/pick/SQL frames (skipped with an empty frame if input is empty)
- Transforms apply steps or SQL (same skip-if-empty rule)
- Destinations write outputs - batch writes directly, streaming via micro-batches
- State and offsets commit only after a fully successful run
If a source asset reads 0 rows and has no declared schema:, the run is a no-op - downstream stages are skipped and offsets stay untouched.
Section pages
- Sources - all six source types, providers, assets, offsets
- Transforms - every step type, SQL, and stateful transforms
- Destinations - all destination types, outputs, and partitioning
- Execution Settings - Spark resources per run
Related pages
- Core Concepts - the spec model in brief
- First Pipeline - build one end-to-end
- Execution Lifecycle - statuses, stages, reconciliation
- API Reference - validate, create, and run specs over REST