Skip to content

Node types

A pipeline is nodes joined by edges. In JSON each node is {"id": "orders", "type": "extract", "config": {…}}; the canvas edits the same document. Formulas use the formula language. Column names are case-sensitive.

Node Inputs Outputs Does
extract — out Read a table, query, collection, endpoint or files through a connection
map in out Choose, rename, cast and compute columns, in order
calculate in out Add or overwrite columns; the rest pass through
filter in out Keep rows where a condition is true
aggregate in out Group and total
join left, right out Combine two inputs on keys
lookup in, lookup out Add fields from reference data
union in (any number) out Stack inputs
route in one per rule, plus other Send rows to different branches
dedupe in out Keep one row per key
sort in out Order rows
window in out Running totals, ranks, previous/next values
limit in out First n rows
validate in valid, invalid Check rules and quarantine bad rows
repartition in out Redistribute rows for parallel work
target in — Write a dataset or an external system

Any output can feed any number of nodes. An input takes one edge, except union’s.

{"connection": "erp-pg", "object": "public.orders", "columns": ["id", "customer_id", "amount", "updated_at"],
"mode": "incremental", "watermark": {"column": "updated_at", "initial": "2026-01-01"}}
Setting
connection Connection key
object Table, collection, endpoint path or file pattern (depends on the connector)
query A native query (SQL for databases) instead of object
columns Columns to read; empty reads all
mode full (default) or incremental: only rows whose watermark.column is greater than the last committed value. The watermark moves only when a run commits
split Parallel reads: {"mode": "key_range", "column": "id", "count": 8} or {"mode": "native", "max": 16} (table partitions, files, pages)
options Connector options, e.g. HTTP pagination; see connectors
broadcast In sharded runs, read in full on every shard. Use for small reference data feeding joins and lookups

Use connection flux with a dataset name as object to read a Flux dataset.

{"fields": [{"name": "order_id", "expr": "id"}, {"name": "amount", "type": "decimal"}, {"name": "customer"}],
"keep_unmapped": false}

Each field is an output column: expr defaults to the input column of the same name, type casts the result (string, int, float, decimal, bool, date, timestamp, json). keep_unmapped appends the columns you didn’t list.

{"fields": [{"name": "amount_eur", "expr": "ROUND(amount * rate, 2)", "type": "decimal"}]}

Adds columns, or replaces ones with the same name. Fields can use earlier fields.

{"condition": "status = 'paid' AND amount > 0"}

Rows where the condition is null are dropped, like SQL.

{"group_by": ["customer_id", "month"], "measures": [{"name": "revenue", "expr": "SUM(amount_eur)"},
{"name": "orders", "expr": "COUNT(*)"}]}

Without group_by you get one row of totals.

{"how": "left", "on": [{"left": "customer_id", "right": "id"}], "right_prefix": "customer_"}

how is inner (default), left, right, full, semi (left rows with a match) or anti (left rows without one). Right-side columns whose names clash get right_prefix.

{"on": [{"left": "currency", "right": "code"}], "fields": [{"from": "rate"}],
"missing": "null", "duplicates": "fail"}

A left join that adds only the named fields. missing: null (keep the row), drop or fail. duplicates: fail (reference data must be unique on the key) or first.

{"by": "name", "distinct": false}

by: name matches columns by name (missing ones become null); by: position needs the same number of columns. distinct removes duplicate rows.

{"routes": [{"port": "eu", "condition": "region = 'EU'"}, {"port": "us", "condition": "region = 'US'"}],
"default_port": "other", "mode": "first_match"}

Each rule is an output port. first_match sends a row to the first matching rule; all_matches to every one. Rows matching nothing go to default_port, or are dropped if it’s null. Connect a port with "from_port": "eu" on the edge.

{"keys": ["customer_id"], "keep": "last", "order_by": [{"column": "updated_at"}]}

Keeps the first or last row per key in order_by order. Empty keys means whole-row duplicates.

{"by": [{"column": "amount", "desc": true, "nulls_first": false}]}
{"partition_by": ["customer_id"], "order_by": [{"column": "day"}],
"fields": [{"name": "running_total", "expr": "SUM(amount)"}, {"name": "prev", "expr": "LAG(amount, 1)"}],
"frame": {"preceding": 6}}

Window functions (ROW_NUMBER(), RANK(), LAG, LEAD, …) and aggregates over a frame. The default frame is everything before the row up to the row; preceding / following limit it to that many rows.

{"rows": 1000}
{"rules": [{"name": "has email", "check": "not_null", "column": "email"},
{"name": "sane amount", "check": "range", "column": "amount", "min": 0, "max": 1000000},
{"name": "known tier", "check": "in_set", "column": "tier", "values": ["gold", "silver"]},
{"name": "email shape", "check": "regex", "column": "email", "pattern": "^[^@]+@[^@]+$"},
{"name": "dates in order", "check": "expr", "expr": "shipped_at >= ordered_at"}],
"on_invalid": "route", "max_invalid_ratio": 0.05}

on_invalid: route (default) sends failing rows to invalid with a _flux_errors column naming the rules they broke; fail stops the run at the first one; warn keeps them in valid and reports a warning. max_invalid_ratio fails the run when more than that share of rows is invalid.

{"partition": {"mode": "hash", "fields": ["customer_id"], "buckets": 16}}

Modes: hash (equal values together), range (by boundaries of one field), round_robin (even spread) and single. Any node can also take a partition setting next to config. See Runs and compute.

Dataset:

{"kind": "dataset", "dataset": "revenue", "key": ["customer_id", "month"], "mode": "upsert",
"description": "Monthly revenue per customer in EUR"}

External system:

{"kind": "connection", "connection": "warehouse", "object": "analytics.revenue", "mode": "upsert", "key": ["customer_id", "month"]}

mode is replace (default), append or upsert (by key). Give datasets a key: Flux sorts the files by it and adds bloom filters, which is what makes key lookups fast. A replace run that produces no rows is refused rather than emptying the dataset.