Data Strategy NZ

Guide

Data pipelines explained: moving and shaping data you can trust

In short: A data pipeline moves data from source systems to where it is used and applies agreed business rules on the way. Good pipelines are mapped with meaning, built once, scheduled sensibly, monitored and covered by an agreement with each source owner.

Behind every trusted report is a pipeline: a repeatable process that takes data out of a system, moves it, cleans it and shapes it. When pipelines are hidden in spreadsheets, macros and one person's head, numbers break without warning. This guide explains pipelines in plain words for data leads, BI analysts, system owners and the managers who rely on their output, using phase 35 of the method.

What a pipeline does

Every pipeline does some version of three things:

  • Extract. Take data out of a source system, by export, an application programming interface (API) or direct access. Your systems inventory should already record how data gets out of each system and whether the vendor charges for it.
  • Load. Put the data somewhere it can be worked on, such as a reporting database, warehouse or lakehouse.
  • Transform. Apply business rules: join tables, fix codes, calculate measures, remove duplicates, apply definitions.

You will hear "ETL" (extract, transform, load) and "ELT" (extract, load, transform). The difference is where the transformation happens: before loading, or inside the target store after loading. Both are fine. What matters for your organisation is that the rules are written down, agreed and built once.

At small scale a pipeline might be a scheduled export, a query and a refresh in the reporting tool. At larger scale it might be a dedicated integration tool orchestrating dozens of jobs. The disciplines below apply to both.

Six disciplines for pipelines you can trust

Phase 35 sets out what a reliable pipeline needs. In plain words:

  1. Map sources with meaning. Each source field is mapped to its target with a data dictionary entry, and stewards check the mapping. Two systems can both have a field called "status" that mean completely different things. Mapping by name without checking meaning is a common mistake.
  2. Write business rules in plain words and build them once. "An active ratepayer is one with a current rating unit and no closure date" belongs in the pipeline, version controlled, not reinvented in each report. The rule should match the certified definition in your business glossary.
  3. Agree a data contract with each source owner. The owner of each source system agrees what will be supplied, how often, and how changes will be notified. This is what stops pipelines breaking silently when a system is upgraded.
  4. Design and schedule loads. Choose full or incremental loading as fits, on a schedule that meets the requirement with little impact on the source system.
  5. Monitor and handle errors. Pipelines alert someone when they fail or when volumes look wrong. Failures are logged, retried and escalated. If users are the ones who find failures, the pipeline is not monitored.
  6. Control any legacy migration. Where an old store is being replaced, cleanse data before it moves, have a rollback plan and reconcile migrated data to the source.

Data contracts without the jargon

A data contract sounds technical, but at this size it is a short written agreement between the data team and a system owner. It does not need to be a legal document. A one-page template covers it:

FieldExample entry
Source system and ownerPayroll system; owner: payroll manager
Data suppliedEmployee, position and pay period tables, listed fields only
Frequency and timingNightly, available by 5am
MethodScheduled secure export to an agreed location
ClassificationPersonal, restricted (from phase 24)
Change noticeAt least one release cycle before any field, code or structure change
Quality expectationsCritical fields complete; known exceptions listed
Contact if it failsNamed person on each side

The change notice line is the one that pays for itself. Vendor upgrades and configuration changes are the most common reason pipelines fail without anyone noticing. When the contract is in place, the system owner knows to tell you, and you know who to ask. The owners and stewards guide explains who should sign it.

Worked example: a membership organisation's board pack

Example only. Tūī Sports Federation is a fictional national membership body of about 150 staff.

Every month the federation's finance analyst spent three days building the board pack. She exported membership numbers from the membership system, revenue from finance and event attendance from a booking tool, pasted them into a workbook and adjusted codes by hand. Twice in a year, numbers in the pack did not match what regional managers saw.

As its thin-slice pilot, the federation rebuilt this as a simple pipeline on tools it already licensed:

  1. The analyst and the membership steward mapped every field, writing a dictionary entry for each. They found "active member" meant "paid this season" in one system and "not lapsed" in another, and the glossary owner agreed one definition.
  2. The business rules were written in plain words and built once into scheduled queries, kept in version control.
  3. Each of the three system owners signed a one-page data contract.
  4. Nightly incremental loads ran into a small reporting database; a check compared each night's row counts with the previous night and emailed the analyst if they moved by more than an agreed amount.

The board pack became a refresh and a review. The pilot reported the time saved and the mismatches removed, against targets agreed before it started, and the recommendation to scale on existing tools went to the investment gate.

Who builds and runs pipelines at your size

The method gives typical owners for phase 35 by organisation size. One person often holds several roles.

  • About 150 staff: an implementation partner, bought in by the day, works with data stewards. The senior BI analyst should understand every pipeline well enough to explain it, even if they did not build it.
  • About 400 staff: a data engineer works with stewards and system owners, often alongside a partner.
  • About 1,000 staff: an internal team of data engineers works with stewards and system owners.

Whoever builds them, make sure the organisation, not the partner, owns the code, documentation and run history, and that someone inside can respond when a pipeline fails at 6am. Write that into the partner contract (see vendor selection). When the build team moves on, phase 44 hands pipelines formally to the people who will run them, and phase 46 keeps them patched, monitored and recoverable.

Pipeline checklist

Use this checklist for each pipeline. It mirrors the phase 35 template fields, so completing it also records your evidence.

  • Pipeline name, source and target recorded.
  • Field mappings complete, each with a data dictionary entry, checked by a steward.
  • Extract, load and transform method recorded (including ETL or ELT).
  • Load type (full or incremental) and schedule chosen and justified.
  • Business rules written in plain words, matching certified definitions, under version control.
  • Data contract agreed with the source owner, including change notice.
  • Classification applied and access restricted on landing and working areas.
  • Error handling and alerts set; failures logged, retried and escalated.
  • Retention set for every copy the pipeline creates, under your phase 25 rules.
  • Lineage captured so users can see where key numbers come from (see the metadata guide).
  • Run history available to the team.

Common mistakes and how to avoid them

  • Rules hidden in reports. If the same calculation lives in twenty reports, it will drift. Move it into the pipeline or the semantic layer.
  • No process for source upgrades. Without data contracts and change notice, pipelines break silently. Add pipeline checks to every source system's upgrade test plan.
  • Over-frequent refreshes. Running a heavy pipeline every few minutes when decisions are weekly wastes money. See cloud data costs.
  • Copying more than you need. Pull only the fields the use case needs. Every extra field of personal information is extra risk under the Privacy Act 2020.
  • Testing only row counts. Counts can match while meaning is wrong. Phase 37 tests accuracy, completeness and validity against business thresholds, with users signing off. See the data quality guide.

Pipelines are built in stage 7, one increment at a time. If your organisation chose no new platform, the same disciplines apply wherever your reporting data is prepared. To see how your current processes rate, take the full assessment.

Questions

Do we need a dedicated integration tool?

Not necessarily. Many organisations of this size run reliable pipelines with scheduled exports, database jobs and their reporting tool. Choose a dedicated tool when the number of sources, schedules or failures makes manual management unreliable.

What is the difference between ETL and ELT?

Both extract and load data and apply transformations. In ETL the transformation happens before loading; in ELT it happens inside the target store after loading. Either works if the rules are agreed, built once and documented.

Who should own a pipeline?

The data team builds and runs it, but the business rules belong to the data owner for that domain, and the source system owner agrees the data contract. Record all three.

How do we know a pipeline has failed?

Set alerts for failures and for volumes that look wrong, sent to a named person. If users usually discover failures first, add monitoring before building anything new.