Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference
Overview
Getting Started
    InstallationQuick StartFirst Pipeline
Pipeline Authoring
Execution
Deployment
Troubleshooting
Examples
Getting Started

First Pipeline

A walkthrough of a real spec, then building and running one of your own.

The spec, piece by piece

This is the sample pipeline from the Quick Start - every pipeline is built from these same blocks.

Sources

Code
sources: - name: orders # your name for the source type: file_system # one of: jdbc, nosql, file_system, object_storage, api, stream provider: local settings: url: sample-data/csv # relative to the inputs dir assets: - name: orders # the thing to read format: csv files_pattern: orders.csv # glob (no ** allowed) options: header: true infer_schema: true

Each asset becomes a DataFrame you reference as sources.<source>.<asset> - here sources.orders.orders.

Instead of inlining credentials, you can reference a saved connection with settings.connection_name - see Connections.

Builds

Builds shape data without changing rows - pick columns, join frames, or run SQL over FQNs. Here we just pass the frame through:

Code
builds: - name: base_orders from: sources.orders.orders

Transforms

Transforms change rows. A transform has either a list of steps or a SQL query - this one casts types, derives a column, and renames another:

Code
transforms: - name: enrich_orders from: builds.base_orders steps: - type: cast columns: - name: amount type: double - name: ts type: timestamp - type: derive columns: - name: total_price expr: "amount * 1.2" - type: rename columns: - from: order_date to: date

Available step types: filter, select, rename, cast, derive, aggregate, add_timestamp, forward_fill, gap_fill.

Destinations

Destinations define where results land, one output per target:

Code
destinations: - name: orders_parquet_example_cluster type: file_system provider: local settings: url: gold/ # relative to the outputs dir outputs: - name: orders_parquet_example_cluster from: transforms.enrich_orders format: parquet mode: overwrite # overwrite | append | upsert (JDBC) path: 01_00_orders_parquet_example_cluster

Execution settings (optional)

Per-run Spark resources - memory, cores, executors, timeout, retries, priority:

Code
execution: settings: driver_memory: "512m" executor_memory: "1g" executors: 2 timeout: "60s" task_max_retries: 3

Build your own

You have a CSV file with orders and want a filtered, enriched copy as Parquet.

1. Upload the input

TerminalCode
curl -H "Authorization: Bearer $TOKEN" \ -F "file=@my_orders.csv" \ -F "folderPath=my-data" \ "http://localhost:8080/api/storage/input/files/upload"

The file lands under the inputs dir as my-data/my_orders.csv.

2. Write the spec

my_first_pipeline.yaml
pipeline: my_first_pipeline mode: batch sources: - name: orders type: file_system provider: local settings: url: my-data assets: - name: my_orders format: csv files_pattern: my_orders.csv options: header: true infer_schema: true builds: - name: base_orders from: sources.orders.my_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: my_first_pipeline/orders

3. Validate before saving

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

4. Create and run it

Create the pipeline (reusable, schedulable), then trigger a run:

TerminalCode
curl -H "Authorization: Bearer $TOKEN" \ -F "specYaml=@my_first_pipeline.yaml" \ "http://localhost:8080/api/pipelines" # 201 Created + Location: /api/pipelines/{pipelineId} curl -X POST -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/$PIPELINE_ID/exec" # 202 Accepted + runId

For one-shot runs, POST /api/pipelines/save-and-exec does both in a single call.

5. Monitor the run

TerminalCode
# status curl -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/$PIPELINE_ID/runs?status=RUNNING" # stages with row counts curl -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/$PIPELINE_ID/runs/$RUN_ID/stages" # driver logs (tail + optional grep) curl -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/$PIPELINE_ID/runs/$RUN_ID/logs?stream=stdout&tail=200" # stop a running job (ends as CANCELLED) curl -X POST -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/$PIPELINE_ID/runs/$RUN_ID/kill"

6. Check the output

TerminalCode
curl -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/storage/outputs/entities?folderPath=gold"

In shared mode the files are also on disk at data/outputs/gold/my_first_pipeline/orders/.

7. Schedule it (optional)

Add a scheduler block to the spec - it is picked up automatically on create/update:

Code
scheduler: type: cron cron: "*/30 * * * *"

Each pipeline has one schedule. Enable or disable it without losing offsets:

TerminalCode
curl -X POST -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/$PIPELINE_ID/schedules/enable"

8. Update it later

Send the updated YAML to PUT /api/pipelines/{pipelineId}. The spec is re-validated and written to storage, and the pipeline points at the new one. Every run keeps the exact spec it executed - fetch it with GET /api/pipelines/{pipelineId}/runs/{runId}/spec.

Common first-run problems

ProblemFix
validate-spec returns schema errorsThe response lists every violation - fix the YAML fields it names
401 / 403 on API callsMissing or invalid token, or the user lacks the required permission - see Auth Troubleshooting
Pipeline with name '...' already existsNames are unique - use PUT to update, or pick a new name
Unsupported source type: ...Only the six source types are supported - see Sources
Run ends FAILEDCheck GET .../runs/{runId}/logs?stream=stderr - the error names the failing stage
Run ends CANCELLEDSomeone (or you) called the kill endpoint - check the run history
No output filesCheck the stages endpoint - if sources read 0 rows with no schema, declare schema: on the asset

Next steps

  • Pipeline Spec Overview - all source, transform, and destination options
  • Execution Lifecycle - statuses, stages, retries
  • API Reference - every endpoint used above
Suggest edit
Last modified on November 26, 2026
Quick StartPipeline Spec Overview
On this page
  • The spec, piece by piece
    • Sources
    • Builds
    • Transforms
    • Destinations
    • Execution settings (optional)
  • Build your own
    • 1. Upload the input
    • 2. Write the spec
    • 3. Validate before saving
    • 4. Create and run it
    • 5. Monitor the run
    • 6. Check the output
    • 7. Schedule it (optional)
    • 8. Update it later
  • Common first-run problems
  • Next steps
YAML
YAML
YAML
YAML
YAML
YAML
YAML