Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference
Overview
Getting Started
Pipeline Authoring
    Pipeline Spec OverviewConnections
    Sources
    Transforms
    Destinations
    Execution Settings
Execution
Deployment
Troubleshooting
Examples
Pipeline Authoring

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.

The four blocks of a pipeline spec
ReadBuildTransform (optional)Write

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

KeyRequiredPurpose
pipelineYesPipeline name (unique, 1-100 chars)
modeYesbatch or stream
sourcesYesWhere data is read from (min 1)
buildsYesJoins, column picks, SQL queries (min 1)
transformsNoStep-based or SQL transformations
destinationsYesWhere results are written (min 1)
schedulerNoCron schedule
executionNoSpark resources and run settings

Unknown top-level keys are rejected - the schema is strict (additionalProperties: false).

A complete spec

orders_pipeline.yaml
pipeline: orders_pipeline mode: batch sources: - name: orders type: file_system provider: local settings: url: sample-data/csv assets: - name: orders format: csv files_pattern: orders.csv options: header: true infer_schema: true builds: - name: base_orders from: sources.orders.orders transforms: - name: enrich_orders from: builds.base_orders steps: - type: filter filter_expr: "amount > 100" - type: derive columns: - name: total_price expr: "amount * 1.16" destinations: - name: gold_output type: file_system provider: local settings: url: gold/ outputs: - name: orders_parquet from: transforms.enrich_orders format: parquet mode: overwrite path: orders_pipeline/orders scheduler: type: cron cron: "0 8 * * *" execution: settings: driver_memory: "512m" executor_memory: "1g" executors: 2 timeout: "60s"

Fully qualified names

Every stage references data by FQN:

  • sources.<source>.<asset> - an asset (table, file set, topic, API call)
  • builds.<build> - a build result
  • transforms.<transform> - a transform result
  • destinations.<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:

  1. Inline - connection fields and auth written directly in the spec.
  2. Saved connection - just a connection_name, resolved at runtime from /api/connections (recommended for real credentials).
Code
settings: connection_name: bdp_psql # resolved from /api/connections

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
schema defaults → asset/output defaults → stream defaults (stream mode) → settings.options → asset/output.options

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

TerminalCode
curl -H "Authorization: Bearer $TOKEN" \ -F "specYaml=@orders_pipeline.yaml" \ "http://localhost:8080/api/pipelines/validate-spec" # {"status":"ok","message":"YAML spec is valid","errors":[]}

Also enforced at validation time:

  • Duplicate YAML keys are rejected
  • scheduler.cron must be a valid 5-field UNIX cron expression (only type: cron is executed; fixed_rate/fixed_delay pass 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.

  1. Current offsets are loaded, sources read into frames
  2. Builds join/pick/SQL frames (skipped with an empty frame if input is empty)
  3. Transforms apply steps or SQL (same skip-if-empty rule)
  4. Destinations write outputs - batch writes directly, streaming via micro-batches
  5. 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
Suggest edit
Last modified on November 26, 2026
First PipelineConnections
On this page
  • At a glance
  • Top-level keys
  • A complete spec
  • Fully qualified names
  • Settings and connections
  • Options
  • Validation
  • How a spec executes
  • Section pages
  • Related pages
YAML
YAML