← Back to the journal

DataFocus · Journal

How Do You Trace Where a Report Column Came From? A Lineage and Primary Key Checklist

A checklist for tracing a report column back through a DataSpring ETL flow in DataFocus OT Heavy: the Lineage button, the primary key rule, the Event Inspector, the logs, and the Dependents tab. It also marks what the manual does not say.

In DataFocus OT Heavy you trace a column in two stages. Inside a DataSpring ETL task flow, the Lineage button shows where a column comes from across the flow, and every processor output must have a primary key or the flow will not run. Outside the flow, a saved answer records its data source and search statement, and the Query SQL Statement panel shows the SQL that ran. This post turns those features into an audit checklist, and it says where the manual stops: it documents a Lineage button, not a lineage export or a report-level lineage register.

Why does column lineage matter for audited figures?

An auditor's question is rarely "is this number right?" It is "which source field produced this number, and what changed it on the way?" Regulators have asked banks that question at scale. The Basel Committee's 2013 principles for risk data aggregation (BCBS 239) were prompted by its finding that, during the financial crisis from 2007, many banks "were unable to aggregate risk exposures and identify concentrations fully, quickly and accurately." Its November 2023 progress report said that nearly ten years after publication, and seven years after the expected compliance date, banks were "at different stages in terms of alignment."

You do not need to be a bank for the lesson to apply. A figure in a report is only as defensible as your ability to walk it back to a source table and name each step between them. The rest of this post covers the parts of OT Heavy that support that walk. DataFocus describes Heavy's pipelines as "ETL (DataSpring, built on Flink)", and the OT Heavy 8.0.9 manual is the source for everything below. The manual "does not assert how other versions or a specific deployment behave", so check each item against your own installation.

How does lineage work in DataSpring?

DataSpring is described in the manual as the unified batch and stream ETL platform built into OT Heavy. You build logic as a task flow of processors on a canvas, then run it manually or on a schedule. Processors fall into five categories: Extractor, Filter, Transformer, Validator and Loader. The manual's examples include extractors for MySQL, Oracle, PostgreSQL, SQL Server, Doris, Kafka and others, and transformers such as SQL Transformer, Join Transformer, Union Transformer and Flink Transformer.

Each processor takes one connection per input port. A SQL Transformer can have up to five upstream processors and refers to upstream data by the processor's full name in backticks, used as the table name. The sketch below is illustrative, not run, and the processor names are made up:

-- Illustrative, not run. `Orders Extractor` and `Customers Extractor`
-- stand for two upstream processors in the same task flow.
SELECT o.order_id, o.amount, c.region
FROM `Orders Extractor` o
JOIN `Customers Extractor` c ON o.customer_id = c.customer_id

For tracing, that naming convention matters: the table names in a transformer's SQL are processor names, so a reviewer can read the SQL and see which upstream processors feed it. The step you can then use is the Lineage button, which the manual says shows where a column comes from across the task flow.

Audit steps for this stage:

  1. Open the task flow and select the processor whose output holds the column you are tracing.
  2. Use the Lineage button and note what it shows about where the column comes from.
  3. Open each transformer on the path and read its SQL or expression. Lineage tells you where a column comes from, and the transformer logic tells you what was done to it.
  4. Record the flow's name and the date you checked it. The manual does not say that lineage results can be exported, so your own note is the record.

Why does every processor output need a primary key?

The manual states that every processor output needs a primary key, or the task flow cannot run. If an extractor's source table has no primary key, the system uses the flink_uuid column instead.

From an audit view, the second sentence deserves attention. A generated identifier lets the flow run, but it is not a business key. If you later need to match a reported row to the source system's record, a flink_uuid value will not help you, because it does not come from the source. The manual does not say how that value is generated, so do not assume it is stable across runs.

A checklist item follows from this: for each extractor on a path you audit, ask whether the source table has a real primary key. If it does not, decide who is responsible for the mapping from the generated column back to a source row, and write that down.

What does the Event Inspector catch before a run?

The Event Inspector lists problems per processor: a missing downstream link, a missing primary key, an unconfigured processor, and untraceable lineage. While error-level exceptions exist, Run Task Flow refuses with the message "There is an abnormal processor configuration".

Two consequences for a compliance lead:

  • A flow that runs has no error-level exceptions at the time it ran. That is a useful control, but it is a configuration check, not a check that the numbers are right.
  • "Untraceable lineage" is a named problem category. Clear it before relying on the Lineage button for a column.

The manual also has a Validator processor category, with Data Validator as its example. The manual's worked example is small: a File Extractor, a SQL Transformer and a File Loader on a sample CSV. In that example the preview matched row-by-row sums (Seattle 8430 orders, 985095.15 sales), and a processor preview shows up to 100 rows. That is the manual's sample data, not a benchmark, and it shows a method you can copy: compare a preview total against an independent total from the source.

Which logs record what happened?

DataSpring keeps two logs of its own:

  • Run Log: task flow, run status, execution time and duration. Scheduled runs are recorded here. Each task flow can have only one scheduled task, with schedule types Simple Repeat, Detailed Frequency and Run once.
  • Operate Log: host, type, status, content and time.

Task flow statuses are Initialized, Pending, Running, Finished, Failed and Canceled, so a Failed run is visible rather than silent.

Outside DataSpring, the main OT Heavy menu has Operate Logs, which record operations such as logins, table imports, new projects and pinboard changes for auditing and troubleshooting. Viewing them requires the LOG_MANAGER or SYSTEM_MANAGER role; entries show host, type, status, detail, operate user, username and time, and can be filtered by status, type and time. LOG_MANAGER is one of the preset roles and is described as the role that audits logs, which makes it the natural role to give an auditor.

The manual does not say how long logs are kept, whether they can be exported, or whether they record the content of a changed transformer. Ask your administrator before you promise an auditor a retention period.

How do you follow a figure from the report back to the flow?

The ETL side ends at a loader. The report side starts with the answer. A saved answer records its data source, search statement and chart settings, and it is recalculated with the latest data every time it is opened. In Data Search, the Query SQL Statement panel shows the SQL the search actually ran. A full walk-back therefore has these links:

StepWhere to lookWhat it tells you
1Saved answerData source and search statement
2Query SQL Statement panelThe SQL that ran
3Table that the answer readsWhich table, and which task flow loads it (you supply this link)
4DataSpring Lineage buttonSource column behind the output column
5Transformer SQLWhat was done on the way
6Run Log and Operate LogsWhen the flow ran, and who changed what

Step 3 is the one the manual does not document. It does not describe a built-in link from a table in the BI side to the task flow that loaded it, so keep your own mapping of tables to flows, at least until you have confirmed otherwise on your installation.

What should you check before changing a table?

The Dependents tab of a table lists the pinboards, answers and other resources that use it. The manual recommends using it to check impact before you change or delete the table. Because an answer is recalculated on every open, a changed column can alter a figure the next time somebody opens a report. Make a Dependents check a required step in your change procedure, and keep the list with the change record.

When is this not enough?

  • The Lineage button is described for a task flow. The manual does not describe lineage for data that arrived by CSV upload, by a hand-built table, or by Data Entry forms.
  • Heavy is the edition with ETL. The DataFocus product brief lists data pipelines for Heavy only, and the Heavy foundation is described as a Hadoop, Hive, Trino and Iceberg stack. If you do not have, or want, that stack, this checklist does not apply as written.
  • The Event Inspector and the logs show configuration and operations. They do not prove that business logic is correct, so the independent total comparison above stays necessary.

Next step

Read the OT Heavy 8.0.9 user manual, chapter 13 on DataSpring ETL, and the DataFocus editions and download page to see how Heavy and Flash differ.