🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Management / Database Administration › Data Governance & Quality › Lesson 5
TEC-DATA86-07 · Lesson 5 · 11 clock hours · demo

Metadata Management and Data Lineage

Objective. Students will build a metadata repository table in PostgreSQL and draw a data-lineage diagram for a three-source ETL pipeline, demonstrating understanding of technical and business metadata.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Is Metadata?

Metadata is data about data. Every table in a database, every column in a CSV file, and every transformation in an ETL pipeline carries metadata that describes its structure, origin, meaning, and sensitivity. Without well-managed metadata, organizations cannot reliably find data assets, trust their quality, or trace problems back to their source.

The DAMA DMBOK (Data Management Body of Knowledge) divides metadata into three broad categories:

All three types are necessary for a complete metadata management program.

What Is a Metadata Repository?

A metadata repository is a centralized store where metadata from across the organization is collected, organized, and made searchable. It can be a dedicated commercial or open-source tool, or it can be as simple as a well-structured database table maintained by your team.

Enterprise tools such as Apache Atlas (open-source, community edition) provide a graphical catalog with automatic classification, glossary management, and lineage visualization. In smaller shops, or when you are learning the fundamentals, building your own metadata repository table in PostgreSQL gives you hands-on understanding of what those tools store under the hood.

Data Lineage

Data lineage is the documented path data travels from its origin through every transformation to its final destination. A lineage record answers: Where did this data come from? What was done to it? Where did it end up?

Lineage matters because:

Lineage is typically represented as a directed acyclic graph (DAG): nodes are datasets or transformation steps, and directed edges show data flowing from source to target.

Designing a Metadata Repository Table

A minimal but practical `metadata_repository` table for an ETL pipeline needs at least these columns:

| Column | Purpose |

|---|---|

| `source_system` | The originating system (e.g., CRM, ERP, flat file) |

| `source_table` | Table or file name in the source |

| `column_name` | Specific field being cataloged |

| `data_type` | PostgreSQL or source data type |

| `transformation_applied` | Description of any ETL transformation (e.g., TRIM, CAST, JOIN) |

| `target_location` | Schema and table name in the warehouse or target |

| `sensitivity_class` | Classification such as PII, Confidential, or Public |

| `business_term` | The agreed business glossary name for this field |

| `last_updated` | Timestamp of the most recent metadata refresh |

Keeping this table complete and current is what separates a useful data catalog from a stale document no one trusts.

Drawing a Lineage Diagram

Draw.io (available free at diagrams.net) is a browser-based diagramming tool that requires no installation. For a lineage diagram:

1. Represent each source dataset as a rectangle labeled with the system and table name.

2. Represent each transformation step as a diamond or rounded rectangle labeled with the operation (e.g., FILTER, AGGREGATE, JOIN).

3. Represent the target dataset as a rectangle or cylinder symbol.

4. Draw directed arrows (edges) from source → transformation → target.

5. Annotate each edge with the transformation type and any field mappings.

For a three-source pipeline, you will have at least three source nodes, one or more transformation nodes, and one target node. Every node must be connected; an isolated node indicates a missing lineage edge — a gap that fails the completeness check.

Using Apache Atlas

Apache Atlas provides an open-source metadata catalog with a web UI. In this lesson you will use the community edition to:

Even if your workplace uses a different catalog tool (Microsoft Purview, Alation, Collibra), the concepts are the same: catalog → classify → link to glossary → record lineage.

Data Safety and Access Control

Metadata itself can be sensitive. A metadata repository may reveal that a column contains Social Security Numbers or that a table holds medical records. Treat your metadata repository with the same access controls you apply to the data it describes:

In physical server environments, follow your organization's lockout/tagout procedures before working inside server hardware, and always comply with posted PPE requirements in the data-center floor area.

Key terms9

MetadataData that describes other data, including its structure, meaning, origin, and operational history.
Technical metadataPhysical details about data assets such as table names, column names, data types, and storage locations.
Business metadataHuman-readable information about data assets including business terms, definitions, data owners, and sensitivity classifications.
Data lineageThe documented path data travels from its source through transformations to its final destination, represented as a directed graph.
Metadata repositoryA centralized store where metadata from multiple systems is collected, organized, and made searchable for governance and operational use.
Data catalogA tool or system that organizes metadata so users can discover, understand, and trust data assets across an organization.
Sensitivity classificationA tag or label applied to a data asset or column indicating its confidentiality level, such as PII, Confidential, or Public.
Business glossaryA managed list of agreed business terms with definitions, linked to technical data assets to provide consistent shared meaning.
Impact analysisThe process of using lineage records to identify all downstream datasets and processes that would be affected by a change to an upstream source.
In class: Instructor demonstrates Apache Atlas (community edition) or a lightweight open-source metadata tool; students catalog at least two source datasets and one target dataset, tagging business terms and sensitivity classifications. · Students create a custom metadata_repository table in PostgreSQL with columns for source system, table name, column name, transformation applied, and target location, then populate it to reflect the ETL pipeline built in the ETL Pipelines course. · Using draw.io (free, browser-based), each student draws a data-lineage diagram showing source → transformation → target for the pipeline, annotating each edge with transformation type.
Materials: PostgreSQL 15, draw.io (diagrams.net), Apache Atlas community edition or instructor-provided metadata tool, DBeaver CE, DAMA DMBOK metadata chapter reference
Check: Metadata repository table contains correct entries for all pipeline stages; lineage diagram accounts for all three sources and the target without missing edges; instructor verifies against pipeline documentation — repository must be 100% complete and diagram must have zero missing nodes to pass.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

DAMA CDMP — Metadata Management
1. Which type of metadata records the data type and nullable constraint of a database column?
DAMA CDMP — Metadata Management
2. A data steward needs to find every report affected before changing the primary key of a source table. Which capability supports this task directly?
DAMA CDMP — Metadata Management
3. In a lineage diagram built in draw.io for a three-source ETL pipeline, a student's diagram shows one source node with no outgoing edge. What does this indicate?
DAMA CDMP — Data Governance
4. Which of the following columns would be MOST appropriate to include in a custom metadata_repository table to support compliance with data privacy regulations?
DAMA CDMP — Metadata Management
5. A student links a business glossary term 'Customer Revenue' to the technical column `cust_rev_amt` in Apache Atlas. Which metadata type does this action primarily create?
PostgreSQL CE — Security and Access Control
6. Which PostgreSQL privilege should be granted sparingly on a metadata_repository table that may contain references to PII columns?
DAMA CDMP — Metadata Management
7. In the DAMA DMBOK framework, which metadata category captures information such as job run timestamps, row counts loaded, and ETL error counts?
DAMA CDMP — Metadata Management
8. A metadata_repository table has entries for two of three pipeline sources but none for the third source. According to the lesson's completion check, what is the result?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.