Start building

Files, storage and batch

Large CSV: reject, batch, lookup and publish

Native large-file ETL with owned streams and bounded buffers. Gallery fixtures are small synthetic data; the same stages operate on operator-approved large files. No AI or remote network calls.

  • CSV → CSV
  • via Files
  • Advanced
  • 20 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processLarge CSV → batches → lookup → CSV / Excel / checkpoint14 activities

Scroll sideways to see the whole flow.

Flow diagram of Large CSV → batches → lookup → CSV / Excel / checkpoint14 activities and 13 transitions: Start, Open Orders, Read Orders, Open Customers, Read Customers, Money, Enrich, Csv, Save Csv, Excel, Save Excel, Save Rejects, Boundary, End.StartstartOpen Ordersstream.open_fileRead Ordersetl.read1Open Customersstream.open_fileRead Customersetl.readMoneyetl.process_batches2Enrichcall_processCsvetl.writeSave Csvstream.to_fileExceletl.writeSave Excelstream.to_fileSave Rejectsstream.to_fileBoundaryetl.checkpoint4Endend
List the 14 activities and 13 transitions

Activities

  1. Start start
  2. Open Orders stream.open_file
  3. Read Orders etl.read
  4. Open Customers stream.open_file
  5. Read Customers etl.read
  6. Money etl.process_batches
  7. Enrich call_process
  8. Csv etl.write
  9. Save Csv stream.to_file
  10. Excel etl.write
  11. Save Excel stream.to_file
  12. Save Rejects stream.to_file
  13. Boundary etl.checkpoint
  14. End end

Transitions

  • Start → Open Orders (on success)
  • Open Orders → Read Orders (on success)
  • Read Orders → Open Customers (on success)
  • Open Customers → Read Customers (on success)
  • Read Customers → Money (on success)
  • Money → Enrich (on success)
  • Enrich → Csv (on success)
  • Csv → Save Csv (on success)
  • Save Csv → Excel (on success)
  • Excel → Save Excel (on success)
  • Save Excel → Save Rejects (on success)
  • Save Rejects → Boundary (on success)
  • Boundary → End (on success)
SubprocessNormalize one bounded batch2 activities

Scroll sideways to see the whole flow.

Flow diagram of Normalize one bounded batch2 activities and 1 transition: Start, End.StartstartEndend
List the 2 activities and 1 transition

Activities

  1. Start start
  2. End end

Transitions

  • Start → End (on success)
SubprocessDeduplicate, disk lookup and exact aggregate7 activities

Scroll sideways to see the whole flow.

Flow diagram of Deduplicate, disk lookup and exact aggregate7 activities and 6 transitions: Start, Unique, Joined, Mapped, Totals, Sort, End.StartstartUniqueetl.deduplicateJoinedetl.lookup3Mappedetl.transformTotalsetl.aggregateSortetl.sortEndend
List the 7 activities and 6 transitions

Activities

  1. Start start
  2. Unique etl.deduplicate
  3. Joined etl.lookup
  4. Mapped etl.transform
  5. Totals etl.aggregate
  6. Sort etl.sort
  7. End end

Transitions

  • Start → Unique (on success)
  • Unique → Joined (on success)
  • Joined → Mapped (on success)
  • Mapped → Totals (on success)
  • Totals → Sort (on success)
  • Sort → End (on success)

Walkthrough

  1. Read and validateTyped row validation routes bad data to a separate owned stream.
  2. Batch subprocessOne pure child call per 100 rows rather than one call per record.
  3. Disk lookup and aggregateDeduplication and lookup use bounded indexed spill files.
  4. CheckpointCreate-only boundary includes verified data and manifest.

What you will practise

  • Pass stream references instead of complete arrays.
  • Use explicit row and byte buffers plus operator disk/deadline quotas.
  • Preserve data integrity and inspect rejects before publication.
  • Run pinned native subprocesses; no alternative execution engine.

Sample cases

1 case with 6 assertions, run with python -m server.integration examples --all in simulation.

Orders

Passed

Deterministic synthetic example with assertions.

Expected result Every listed check must pass; simulation writes do not publish real files.

6/6 assertions

  • Run status
  • /read
  • /rejected
  • /unique
  • /batches
  • /groups

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
  • Large-file ETL dependencies (requirements-large-batch.txt) needed in every run, simulation included
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
  • large_files file · stream.open_file, stream.to_file, etl.checkpoint
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
f7edbc3407b7ae49ec8ea07229b10b0d7c66fde57c2616d1cc07a0f41c32c2e0
Closure SHA-256
4cffddb7e881015d469453d216c6a6666e1809ffcd4eafcaeac4452d507d0550
Runtime
1.27.0
Results
1/1 cases, 6/6 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/large_csv_batch_lab.json
  • server/integration/templates/lb_enrich_rows.json
  • server/integration/templates/lb_money_batch.json
  • server/integration/templates/lb_orders.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example large_csv_batch_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check