In the builder, a branch is a concrete path from the selected source stream to a destination. Each branch can have its own transform logic, filter, destination connection, and schedule.Documentation Index
Fetch the complete documentation index at: https://docs.mantrixflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Transform approaches
MantrixFlow provides three SQL-based approaches:| Approach | Where | Source reference |
|---|---|---|
| SQL Transform node | Canvas (between Source and Destination) | {{ source }} |
| Normalisation tab | Destination panel → Normalisation | Automatic (rename/exclude) |
| dbt Layer tab | Destination panel → dbt Layer | {{ source('raw', 'schema__tablename') }} |
SQL Transform node
Add a Transform node on the canvas and write aSELECT using {{ source }}:
Normalisation + dbt Layer
For production pipelines, use the Destination panel tabs:- Normalisation tab — Rename or Exclude source columns before data lands in the raw layer.
- dbt Layer tab — Write a dbt SQL model on
{{ source('raw', 'schema__tablename') }}using the renamed column names.
A realistic branching example
A commerce team might branch oneorders stream two ways:
- Analytics branch writes cleaned rows to PostgreSQL in
analytics.orders_live. - Operations branch writes a narrower customer-service view to MySQL in
ops.order_lookup.
Safe transform workflow
- Pick the source table first so previews use the right record shape.
- Start with a pass-through (
SELECT * FROM {{ source }}) and change one thing at a time. - Use Preview after every meaningful edit.
- Save the transform before running the pipeline.
- Validate the destination output before turning the schedule on.
Good use cases for a transform
- standardize enum values such as
paid,Paid, andPAID - derive reporting-friendly columns such as
order_dateormrr - remove fields that should not leave the source system
- flatten JSONB payloads before they reach the destination
- add metadata such as
loaded_fromorsync_batch_id
Filter node
The builder includes a dedicated Filter node that applies a SQLWHERE clause: