Logistics runs on files. Carriers send manifests (which parcels were picked up, from where, going where, at what weight) as CSV drops on a schedule they choose, not you. Turning those drops into a table the operations team trusts every morning is a classic nightly pipeline, and a good test of whether a visual designer produces something an engineer would sign off.
Northbeam Logistics and the morning shipments table
Lena is a data engineer at Northbeam Logistics, a fictional regional carrier-of-carriers. Partner carriers drop manifest CSVs into an object-storage bucket overnight. By 07:00 the operations team expects analytics.shipments_daily to hold yesterday's shipments, and twice last quarter it silently held half of them. Lena's goal is a pipeline that fails loudly instead.
The shape of the pipeline
- Wait for carrier manifests (
FILE_WATCHER): watchcarriers/manifests/{{ ds }}/in the landing bucket. If nothing arrives, the run fails here, at the right step, rather than loading an empty day. - CSV to Parquet (
FILE_PREPROCESS): convert each carrier's CSV to Parquet undercarriers/parquet/{{ ds }}/. - Load staging (
LOAD_DATABASE): append the day's Parquet tostaging.shipmentsthrough the warehouse data location. - Publish daily shipments (
LOAD_DATABASEwith a query as its input source): conform the staged rows and append them toanalytics.shipments_dailythrough the same data location. - Check row counts (
RECORD_COUNT_VALIDATION): the rows published must equal the rows staged. This is the step that would have caught last quarter's half-loads. - dbt tests (
DBT_TEST): run the tests on theshipments_dailymodel.
On the canvas

Lena drags the six nodes onto the canvas between Start and End and links them. The header tells her when anything is missing: before she fills in the row-count check's source and target, it reads "3 to fix". She fills each node's parameters in its dialog, pointing every database step at the warehouse location rather than typing a host.
What the team actually reviews
Lena's colleague reviews the change as files, not as a screenshot: the generated DAG (eight build_task calls and seven dependencies), the task list in config.yaml, and the parameters in properties.yaml. The review catches one thing: the row-count check was originally placed before the publish step, so it compared the files with staging and would never have caught a failed publish. Moving it after the publish, so it compares staging with the published table, is a drag on the canvas and a two-line diff in the YAML.
Scheduling and metadata
In the workflow list the pipeline is marked source FILEWATCHER, catalog logistics, category ingestion,
priority P1, load type incremental, schedule 0 2 * * *. Those fields end up in the generated
properties too, so whoever is on call at 02:15 can see what kind of pipeline failed and how much it matters.
How long to wait is a scheduling decision
FILE_WATCHER leaves the waiting to the schedule: when its task runs, it checks the bucket
(S3 or OCI Object Storage) for files matching the path or prefix, and reports what it found. The generated DAG retries a failed task
once, five minutes later. So the real lever is the schedule. Lena looks at when the carriers' files have actually arrived over a few weeks
and sets the cron to run after the usual last arrival, with enough time before 07:00 for someone to act. A straggler workflow later in
the morning (see the variations below) handles the carrier that is late anyway.
She also leaves the watcher's AWS key fields empty. The node declares them as optional, falling back to the credentials of the
environment it runs in, and a key typed into them would sit in properties.yaml.
Making the count check mean something
RECORD_COUNT_VALIDATION compares the row count of a whole source with the row count of a whole target: tables (location,
schema and table) or CSV files. It does not filter by date. That shapes the design around it:
- Truncate staging each night. If
Load stagingappends,staging.shipmentsgrows every day and its count says nothing about last night. Setting the load mode to truncate makes the staging count exactly "rows received for this run". - Count the day, not the history.
analytics.shipments_dailykeeps history, so compare staging with something that holds only the day just published, such as a view over yesterday's rows, if your database counts a view like a table. Test that against the warehouse once before relying on it. - Leave "allow mismatch" off. It exists for observe-only trials; in production it would turn the one check that matters into a log line.
LOAD_DATABASE with a table or query as its input source copies between tables through a data location. Point it at a scratch schema for the first runs, and check the row-count step fails when you expect it to.The on-call view
| Failed task | What it usually means | First action |
|---|---|---|
| Wait for carrier manifests | A carrier's file is late, or the path changed | Look in the landing bucket for the run date's prefix |
| CSV to Parquet | A file arrived malformed or with new columns | Open the carrier's CSV; ask the carrier before changing anything |
| Load staging | The warehouse location is unreachable, or the schema moved | Check the warehouse location and the table |
| Check row counts | Rows were lost or duplicated between staging and publish | Compare the two counts by hand before rerunning |
| dbt tests | The data loaded but breaks a model's rules | Read the failing test; it names the model and the rule |
What Lena gets
- A DAG that looks like every other generated DAG, so the on-call engineer already knows how to read it.
- Three explicit failure points (no file, count mismatch, failed test), each named after the step that failed.
- A change process that is a YAML diff, which the team already knows how to review.
Variations
- Several carriers, one pipeline: keep one watcher per carrier prefix if they arrive at very different times; otherwise one watcher on the parent prefix.
- Late files: a second, later workflow can pick up stragglers with the same nodes and a different schedule.
- Notification: add an email node after the tests for a success summary, if the operations team wants one.


