Skip to content

Pipeline Workflows

Pipelines execute sequentially as streaming stages. Each stage receives typed records from the previous stage and yields validated rows downstream.

Multi-Stage Example

version: 2
steps:
  - deduplicate:
      keys: [account_id, invoice_no]
      keep: last
  - derive:
      net_total: "round(gross_total - discount, 2)"
  - assert:
      non_null: [account_id, net_total]
How External Sorting Handles Large Files

When input volume exceeds the configured memory budget, Kestrel spills sorted runs to temp_dir and performs a k-way merge automatically.