Edits

A user fixes a cell in the grid, renames a value everywhere, deletes a row, adds one. Your application keeps those changes and sends them in an edits node of the graph, wherever in the pipeline they belong; the server applies them there on every run and says how each one fared.

{"id": "fixes", "kind": "edits", "input": "with_stores", "key": ["order_id"], "edits": [
  {"id": "e1", "kind": "set", "column": "store_name", "key": {"order_id": 50004}, "to": "Online"},
  {"id": "e2", "kind": "set", "column": "qty", "key": {"order_id": 50001}, "to": 3, "was": 4},
  {"id": "e3", "kind": "remap", "column": "channel", "from": "web", "to": "online"},
  {"id": "e4", "kind": "delete", "key": {"order_id": 50003}},
  {"id": "e5", "kind": "add", "key": {"order_id": 50099},
   "values": {"order_date": "2026-09-30", "store_id": 101, "product": "Gift card", "category": "Other",
              "qty": 1, "unit_price": 25, "revenue": 25, "store_name": "Maple Street Market", "region_code": "NE"}},
  {"id": "e6", "kind": "set", "column": "qty", "key": {"order_id": 49999}, "to": 2}
]}

An edit names its row by value, never by position, so it holds when a new file reorders or adds rows upstream.

kindFieldsDoes
remapcolumn, from, toevery row with that value gets the new one. Needs no key
setcolumn, key, to, was, allone cell of the row whose key is key
deletekey, allremoves the row whose key is key
addkey, valuesa new row with that key and these values; a column not given is empty
  • key on the node names the columns that identify a row. Each set, delete and add gives exactly those columns. The key must be unique where the node is, or the run fails: an edit made for one row would find several.
  • was on a set is the value it replaced. On a later run where upstream changed that value, the user’s value still wins, and the edit is flagged so your application can show where upstream disagreed.
  • all: true on a set or delete applies it to every row with the key, where it would otherwise be ambiguous.
  • Each edit has an id, 1 to 64 characters, unique in the node. Every value must be of its column’s type; a node holds at most 10,000 edits.

How each fared

The node’s record in the run lists every edit:

{
  "id": "fixes", "kind": "edits", "rows_in": [5], "rows": 5, "columns": 11,
  "edits": [
    {"id": "e1", "state": "applied"},
    {"id": "e2", "state": "applied"},
    {"id": "e3", "state": "applied"},
    {"id": "e4", "state": "applied"},
    {"id": "e5", "state": "applied"},
    {"id": "e6", "state": "orphaned", "detail": "no row has its key"}
  ],
  "summary": "6 edits: 5 applied, 1 found no row."
}
stateMeans
appliedit changed what it names
orphanedno row has its key: kept in the graph, listed, not applied
ambiguousmore than one row has it, and it was made for one
flaggedapplied, and upstream changed the value it replaced (was)
conflictan added row whose key a row already has

An edit that did not apply fails nothing. The run’s summary and the dataset’s notes say so, and the lineage keeps it:

{"state": "succeeded", "version": 2,
 "summary": "Made version 2: 5 rows, 11 columns, from sales, stores; 1 edit(s) of node fixes found no row: e6."}

The rows after it:

curl -s "http://127.0.0.1:3699/projects/shop/datasets/ds_debf6ba6545386fd/rows?sort=order_id"
{"version": 2, "total": 5, "offset": 0, "columns": ["..."],
 "rows": [[50001, "2026-09-07", 101, "Whole milk", "Dairy", 3, "4.190", "online", "16.76", "Maple Street Market", "NE"],
          [50002, "2026-07-05", 102, "Bananas", "Produce", 1, "0.595", "store", "0.60", "Harbor Fresh", "NE"],
          [50004, "2026-09-19", 999, "Apples", "Produce", 2, "1.890", "online", "3.78", "Online", null],
          [50005, "2026-09-21", 202, "Rye bread", "Bakery", 1, "3.250", "store", "3.25", "Lakeside Foods", "MW"],
          [50099, "2026-09-30", 101, "Gift card", "Other", 1, "25.000", null, "25.00", "Maple Street Market", "NE"]]}

Edits apply where the node is and change nothing before it. Here revenue was computed upstream, so e2’s new qty does not change it; put the node before the step that computes it, and it would.

Next steps