Skip to content
ImagineWorld

Technical Metadata and Data Lineage

node_idnode-book_data-governance-handbook_chapter-07-technical-metadata-and-data-lineage
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num7
chapter_titleTechnical Metadata and Data Lineage
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 7 — Technical Metadata and Data Lineage

Section titled “Chapter 7 — Technical Metadata and Data Lineage”

Establishing a high-value, high- return-on-investment (ROI) data lineage capability is a fundamental capability for any data governance program. The success or failure of a Chief Data & Analytics Officer hinges on being able to answer a few key core questions:

  • Where is my data?
  • Who owns it?
  • How is it classified?
  • Is the data safe and secure?
  • How does it change (or how was it changed) as it moves through the company?
  • Can I trust the data? Is it of high quality?

Data lineage is the ability to see the journey the data has taken across your organization. Data lineage captures the source of any transposition changes and the overall journey of where that data has come and gone. It provides a line of sight into how the data has evolved across its source, journey, and evolution.

Building on the Metadata Management capabilities outlined in Chapter 6, Metadata Management, this chapter will focus on the more technical aspects of Metadata Management. We will focus on where the data is, how it’s moved, and the technical requirements to better understand the data. While technical data stewards are most likely to be engaging with technical metadata, specifically with data lineage, business data stewards also benefit from this capability. Additionally, technical metadata will provide the foundation for the measurement of data quality, which we will cover in Chapter 8, Data Quality.

As of the time of this writing, full end-to-end data lineage is still a challenge for most companies. I will outline my experience in deploying data lineage, the challenges, and what we can do about it in lieu of perfection. We do not need to wait for the “magic bullet” tool or technology to lean into the development of data lineage capabilities for our companies. We can start right now with what we have and build as the capability matures. Let’s start with some basic definitions to ground ourselves in a common language.

We will cover the following main topics:

  • Technical metadata
  • Data lineage
  • Building an optimal data lineage capability

Technical Metadata is typically used by more technical data professionals such as engineers, data operations professionals, system engineers, and general information technology analysts. Technical Metadata is information that describes the more technical aspects of data and includes key information to manage and understand the physical aspects of data. Technical Metadata includes location and formatting information across the following areas:

  • Data schema: The description of the structure of the database, including tables, rows/columns, and the relationship between them
  • Data dictionary: Includes data definitions, data lineage, and data quality rules
  • Data lineage: The history of how the data is created, processed, and used; it is used to enable data discovery, data integration, data governance, and data analysis

Documentation of physical data assets, movement, transformations, and relationships between physical data elements enables the users to better understand the data. Technical metadata capabilities are important for several reasons, including the following:

  • Helping data analysts and engineers understand what data is available
  • Helping to track the history of how the data was created and transformed, which can be useful for debugging and auditing purposes
  • Can be used to assess the quality of the data to enable the users to identify and fix data quality issues, as well as identify where the data quality issue was introduced in the process (thereby enabling the business to fix the process issue that led to the data quality issue)
  • Protecting data from authorized access and/or modification

Helpful hint

When you are getting started with technical metadata, you will likely need to pick one area to start with. You may want to start with a report that is important to your business so that you can provide assurance that the report is reliable. If this seems overwhelming, you might just start with a simple metric on that report.

For example, perhaps you are trying to understand if the customer count you are reporting to your stakeholders (and, perhaps, specifically stockholders) is accurate. Here are a few questions you might be asking about that metric:

  • What is the definition of customer count?
  • Where are we sourcing the customer count metric from?
  • Is the source the right place to source the customer count metric from, based on our definition?
  • What is the lineage of the customer count data? Who touches that data in transit?
  • Are we confident the customer count data is of high quality? Can we trust it?
  • Who is the owner of the customer count metric?
  • Have we tested the lineage to ensure that the data is reliable? Have we tested the data quality for accuracy, completeness, and reliability?

By evaluating the answers to this question, we will be able to determine if A) there are issues with the customer count metric or B) we are confident relying on it. By exploring the metric in detail and documenting the results in a shared system of record for metadata, we can reduce our dependency on institutional knowledge and create transparency and visibility into this metric. Once it is evaluated, we can reuse it across the company with confidence.

I often get asked how to measure the value of the more technical aspects of data governance (in addition to data governance in general). The root of this question is: how do you measure the value in terms that business users will understand and agree to? The important part of this answer is that the business user must agree that the value they received is as you described. Most CDAOs do not go the extra step to gather confirmation from the business that they did indeed receive the value the data office says that they did. In this case, CDAOs are found advocating that their team provided impact, and no one is agreeing, often causing the CDAO to lose credibility with the business and, ultimately, funding and support.

To avoid this issue, it’s imperative that value is based on facts and that the business agrees with the facts upfront, before the deployment (often, this means aligning on the methodology by which value will be measured), aligning after the deployment of the capability that they did receive the value. There are several ways to measure the value of technical metadata.

The most straightforward way to measure the value is to start by measuring the benefits that technical metadata provides to the organization:

  • The reduction in time spent to find and understand data [# of hours saved x the number of people impacted * average cost per hour/per person = Reduction in cost saved by providing technical metadata]
    • Assumptions to align with the business on:
      • # of hours saved - # of people impacted - Cost per hour/person
      • Note: Align the assumptions upfront so that when the results come in, there is less debate. Often, the number is higher than they expect, and it provides concerns about the methodology. This approach will reduce the friction in value alignment discussions.
      • Additional note: I have seen the “search and find” time for an analyst reduce up to 80% by activating a metadata management capability in an organization, so do not understate the importance and impact of this capability.
  • Improved quality and accuracy of data analysis [# of identified data issues * value of data issue remediation]
    • Assumptions to align with the business on:
      • Value of data issue remediation [could be the actual dollar amount, could be materiality %, could be the value of the decision made from the number]
      • Note: You could simply track the number of data issues identified and remediated; however, that assumes all data issues are treated equally, which is not true.

An alternative or additive measurement of value is the measure of the cost avoidance that technical metadata provides to the organization. These tend to be a bit harder to define and align with the business but are equally as valuable. Here are some examples:

  • Compliance violation avoidance (examples: GDPR fines, CCPA fines, external audit findings) [# of violations avoided * average cost of violation]
    • Assumptions to align with the business on:
      • Which violations were avoided (usually aligned with Chief Privacy, Chief Legal, or Chief Compliance Officer(s)) - The average cost of violations
  • Error avoidance [# of errors avoided * Value of avoidance]
    • Assumptions to align with the business on:
      • What is an avoided error? - What’s the value of the avoided error?

Ideally, your technical metadata leader should track and report these metrics regularly. I recommend making the metrics stakeholder-facing, available for review at any time, and fully transparent. You can invite challenges from stakeholders regarding the assumptions to build trust in the metrics used to measure success, without being defensive. If the assumptions don’t make sense to the business, change them. Ensure alignment on the assumptions, and let the value of the solution speak for itself from there.

Which metrics should be used to measure maturity?

Section titled “Which metrics should be used to measure maturity?”

When evaluating the maturity of the technical metadata management capabilities, the following metrics should be used internally to measure the implementation of the capability:

  • Number of data sources with data schemas documented
  • Number of data sources with complete information
  • Number of data sources with technical data stewards identified
  • Number of reports with technical metadata documented
  • Number of metrics with technical metadata documented
  • Number of data quality issues identified from technical metadata

Example

Where is our data?

A common, and somewhat terrifying question to be asked.

What’s more terrifying is the common answer: I don’t know.

This is the reality for most companies, unfortunately. Many have a “decent” idea of where the data is. They may know what system it’s in…but what about the unknowns? Are you 100% sure that the data hasn’t been copied? Replicated? Stored on a spreadsheet?

This is what makes technical metadata so important, to be able to answer the question, “ Where is my data?” Many companies know where they expect data to be but struggle to have a complete picture of all of the locations of their data with certainty.

Technical metadata should be managed by the Technical Data Steward. The Technical Data Steward is a technical resource within the organization, often within the Information Technology function, who is responsible for maintaining and caring for the physical data within your organization. While your Business Data Steward is responsible for policy compliance, business definitions, use, and business glossary accuracy, the Technical Data Steward is the technical counterpart to this Business Data Steward. Together, these two roles create trust in the data that is available to the company as a company asset.

A mature, fully operationalized technical metadata solution will provide fully available, easily accessible, comprehensive technical information about the company’s data, with clear stewardship (which answers the question: Who is accountable for the data?). The data will be transparent, clear, and easily understood by any user. Additionally, the solution will answer the following questions:

  • What data do we have?
  • Where is our data located?
  • How is our data being used?

When we can consistently and systematically answer these questions of our data, then we have a mature technical metadata capability. If we have to go on a search and rescue mission each time a question (such as the preceding ones) is asked, we have more work to do. It usually takes one crisis, either customer-driven or regulatory-driven, where you can’t easily answer the preceding questions to drive executive management to invest in this capability quickly and at scale.

There are a number of ways a user (business or technical) can use technical metadata information to aid them in running their business and performing their respective job responsibilities. A few common examples include the following:

  • When you are looking for data. Example: A user is trying to find the best source of revenue for a specific product.
  • When you find a problem and want to understand the source of the issue. Example: The user identified there is an issue on a report. They look to the business and technical metadata to find where the data is coming from to discover the source of the error.
  • When you are trying to secure and protect data. Example: You need to find personally identifiable information (PII) in the company and protect it from unauthorized access. First, you need to find where the PII is so that you can classify it as PII, and then work with your security team to protect it.
  • When you need to delete data. Example: A new customer requirement to delete data within a specified time period is defined in their contract. They’ve asked the company to delete their data, and you need to find where all their data is in the organization.
  • When you are trying to understand a process end to end. Example: You are a business analyst, and you are looking for ways to optimize the lead-to-cash process. You want to understand the path a quote takes through the company’s systems to look for simplification opportunities.
  • When you are attempting to understand change management impacts. Example: A new release of your HR system is going into production this weekend. You need to determine if any of the reports used for headcount management are impacted by the changes before they happen.

Data L ineage is the capability that tracks and documents the journey data takes through an organization’s systems. Data lineage shows how data flows through the systems, how it is changed or manipulated along the journey, and where it is stored and ultimately used. In short, data lineage provides transparency into the data. This is critical because transparency helps us drive trust in our data. When we know what the data is and where it comes from, we trust it more, and it is a key component in understanding the data and believing what it tells us.

The other key component of a data lineage capability is it tracks the flow of data over time. Unlike some of the other data capabilities in this book, data lineage provides information about the data life cycle. By providing a clearer understanding of where data originated, how it may have been changed, and where it ultimately resides, we are able to see all the transformations the data went through along its life cycle, what changed, and why.

Having trust in our data is paramount to ensuring a company is making data-driven decisions. At the last assessment, 83% of CEOs wanted their organizations to be data-driven, but only 30% of employees believed that they were (Tableau). Why the gap? Well, in part, because the data is not trusted, it’s hard to get to, people do not understand it, and, therefore, it’s considered in decisions but rarely used. Data lineage matters because it helps companies to see the data more clearly, understand where it came from, and, thus, trust it. This trust is foundational to data use. When we trust information, we can use it for decision-making, and, therefore, make better decisions. Ultimately, data lineage brings integrity to data.

Data lineage is the documentation of physical data assets, movement, transformations, and relationships between physical data elements. Data lineage tells us the following:

  • Where the data is
  • How it’s stored (is it in a data warehouse, data lake, on-premises, or in the cloud (which cloud)?)
  • How the data was created
  • Where the data came from
  • When it was last altered
  • How it was updated (systematically, by a human, and determining which one by capturing the user ID)

Example

In one of my past experiences building out a Data Governance function, I had a consulting partner tell me that there was no need for end-to-end lineage so long as we could verify that the quality of the data at origination matched the quality of data at the output at the report. All that might be true for data quality purposes, but that doesn’t tell us about any technical implications associated with change management for security purposes, and so on.

For example, if a change goes into production in System A, and the reports we are looking at come out of System D, we would not have visibility into the interim stops at System B or System C. Without data lineage, we would not be able to see that System B contains that data and is a potential impact from a change. This is simply one system that the data transfers through as a part of its journey. We would simply see that System A and D did not match, but not know that data from System B is extracted into a different report and is also impacted in the change process.

Data lineage also provides us insight into what kinds of changes might impact it. Imagine being able to query our data lineage repository. We can see where that data lives across its life cycle, not just at its beginning and respective end. It’s important to consider all of the requirements for data lineage and all the use cases associated with it when making these types of decisions.

The benefits of data lineage are broad, as we will explore in the following sections. Please keep in mind that data lineage is the foundation for additional data governance capabilities, including data quality. We will cover data quality in great detail in Chapter 8, Data Quality.

Consistent with the measures in the Technical Metadata section, the value of data lineage can be measured in terms of cost savings, time savings, risk avoidance, and value add. See the preceding section for specific examples and calculations you can use to measure the value of data lineage. More broadly, data lineage can be measured in a variety of ways, including the following:

  • Increased revenue/cost savings: If you provide better information to the users, they are able to make better decisions about how to spend money, and thus generate revenue. This can also be leveraged to increase operating margin, by evaluating opportunities to reduce redundancies and cut costs. Costs can also be saved by identifying data errors early and preventing users from making decisions based on bad data.
  • Risk reduction: You may be able to help save your company from the risk of a data breach by identifying data that carries risk and protecting it early.
  • Improved decision-making: By using data lineage to provide a clear line of sight into the data, you can apply automation techniques to make reports quicker and higher value so that decisions can be made faster and with less human error risk.
  • Increased/improved innovation: You can use data lineage to uncover new insights from existing data, which can be used to create new products and services.

Broadly speaking, data lineage is valuable for a number of key reasons, including the following:

  • Increased data quality: Data lineage feeds data quality by providing insight into changes to the data to identify potential errors.
  • Increased compliance: Data lineage helps companies meet compliance expectations that require an understanding of data sovereignty and support avoidance of fines or penalties for requirements such as GDPR or CCPA.
  • Enhanced auditing: Data lineage enhances auditing capabilities due to the availability of data flows. By being able to see transparently where data has flowed, data lineage can help auditors understand a process before they have to meet with stakeholders.
  • Improved security: Data lineage is a fundamental capability to drive precision in security practices. Instead of taking a blanket approach, a deep understanding of the data that needs to be protected allows security teams to act with precision, applying the appropriate level of control to the right data in the organization.
  • Faster troubleshooting: Data lineage can be used to investigate data issues to be able to trace the data throughout the data supply chain. This traceability will help the user identify the source of the issue faster, saving (potentially significant) time.
  • Improved change management: Data lineage drives improved change management by enabling teams to see what data will be impacted by a release or change ahead of time so that appropriate testing can be completed ahead of production releases and after to confirm changes are functioning as intended.
  • Stronger data governance: Data lineage can be used to improve data governance and assist in the prioritization of efforts. By providing a systematic way to document data flow, the data governance team can leverage data lineage to prioritize focus areas and ensure data is used in a consistent and compliant manner aligned with data governance policy.

Leveraging the areas outlined here, you can use a basic calculation to measure the value of data lineage all in by calculating the aforementioned benefits, and then using a simple ROI calculation:

ROI = (Benefits − Costs) / Costs

You can calculate the ROI on your data lineage capability for the company. To calculate costs to serve this capability, you should include the following costs:

  • Cost of the software: Cost of the contract to acquire the data lineage tool or tools used in your organization to provide the capability to users.
  • Costs of the implementation (over some period of time): The cost to implement the tool may include one-time costs such as an implementation consultant and increased headcount (such as contractors to stand up the platform or tooling needed to design processes or do initial data lineage collection).
  • Cost of the maintenance, including people, processes, and technology: Cost for the people who will provide the capability on an ongoing basis, ongoing server space, and so on.

Together, this calculation can value the benefit in terms of cost and provide your company with confidence that the work to maintain data lineage is overshadowed by the significant benefits it provides.

What metrics should be used to measure maturity?

Section titled “What metrics should be used to measure maturity?”

In addition to business value measurements outlined previously, the data governance team may track specific value measurements program-wide, such as the following:

  • Number of data quality issues identified and resolved
  • Number of compliance violations identified and prevented before impacting a customer
  • Number of security incidents identified and prevented
  • Time to market (TTM) for new products or services
  • Increase in time to value (TTV) for data analytics
  • Cost savings from data source retirement or simplification efforts

As with other types of technical metadata (such as a data dictionary), the Technical Data Steward is often the responsible person (or people) who cares for data lineage and ensures the lineage accurately represents the physical data throughout the company. A business user may use the data lineage to evidence confidence in the data, given visibility into where the data has moved, the quality along the journey, and the overall reliability of the data; however, the care of data lineage is typically in the hands of the Technical Data Steward.

There are a number of mature data lineage capabilities that are relevant, but simply, the breadth and depth of your data lineage capability is the primary indicator of success. As you start to roll out this capability, you may start with a single report or metric. Next, you may evolve to an entire data domain or suite of systems. Last, you may have all prioritized data assets across the company documented with sustainable data lineage. As you mature, you should be able to uncover problems and errors in your data lineage through validation. Validation is a best practice that should be implemented along your maturity journey. The validation should include connecting data supplies and data consumers to confirm the results are as expected. Let’s explore validation deeper.

Best practice – validating lineage

By conducting end-to-end lineage, data analysts and business users can increase the trust of the data lineage capability. Validation provides confidence in the completeness and accuracy of the technical metadata capabilities.

To validate lineage, select a report that matters to your company; perhaps an executive-level dashboard with key performance indicators (KPIs) would be a good selection. Then, do the following:

  1. Prioritize the relevant report and identify key business elements (data points) on the report.
  2. Select a sample of line items to validate from the report.
  3. Meet with the individual who either produces the report or is responsible for the automation to create the report (depending on how the report is created).
  4. Document the end-to-end generation of the line items/key business elements identified in steps 1 and 2 for each unique business element selected.
  5. Identify any issues or concerns with the documentation provided.
  6. Compare the narrative to the technical data lineage collected and assess any gaps.
  7. Discuss with the report owner/producer any gaps identified, validate if the understanding or the technical lineage is inaccurate, reeducate for understanding gaps, and update technical lineage for any technical gaps. Figure 7.1 – Example report: Revenue by Product

Figure 7.1 – Example report: Revenue by Product

Figure 7.2 – Example metadata process

Figure 7.2 – Example metadata process

Best practice – linking technical metadata to business metadata

To bring the power of business and technical metadata together, we must be able to link the two together. Ideally, your business and technical data stewards will work together to drive this capability so that the company can benefit from the work done.

Figure 7.3 – Example data supply chain for retail bank division

Figure 7.3 – Example data supply chain for retail bank division

Upon scoping a specific data asset into the metadata management capability, your business data steward will work to define business definitions and calculations and identify the appropriate, optimal source of the data. Then, the technical data steward will step in to identify physical data elements and extract the technical metadata (or read the technical metadata, depending on your tooling). The details about the physical data elements and the data supply chain should be reviewed and validated for quality, consistency, and accuracy.

Best practice – optimizing the data journey

By leveraging data lineage, the data team can identify data duplication enterprise-wide. When we have visibility into all the hops, skips, and jumps data takes across the data supply chain, we can identify inefficiencies across the supply chain. This allows us to identify places where the data can move more directly, reducing the risk of error and optimizing costs to maintain the same data in multiple locations.

Ideally, individuals should start with their question. What often happens is a data engineer or business analyst will start with something such as, “ I need access to database ABC.” I always find this to be the wrong place to start, but it’s so common.

My immediate response is “ Why?” and is often met with a confused look.

It’s not uncommon for the response to be something along the lines of “Because I need to do my job”, “I need to produce a dashboard”, or “My boss asked me to get some data to create an insight.”

The problem with this line of thinking is that we are putting the data before the business understanding, and it’s based on a series of assumptions about the data. In reality, what we should do is clarify the outcome we are searching for before we start asking for access to any data. Starting with “ Why?” results in a much more specific and faster outcome. It allows the requester to think more deeply about why they are doing what they are doing and enables the data team to support them with a faster path to that answer because it is based on what they need versus where they want to start their search. This “give me access” approach is based on the assumption that the requester knows the location they are requesting access to is the best place to get the most trustworthy version of the data they need.

It’s often wrong.

Pulling on the previous example, if access were to be granted to the database requested, without further dialog, the requestor would get access to the data and go about their merry way. However (and I can’t stress this enough), it’s likely that there is more to the request and more to the data than initially believed. There are a few things that could go wrong in this example:

  • The database may not have the data in it that the requester believes it does
  • The data might not be fit for use
  • The data may have low quality
  • The database might not be the best place to get the data as it may not be certified
  • The analysis the requestor needs may already be readily available (the metric, the dataset, or perhaps a report)

Thus, the first step in any search for technical metadata should begin with the business metadata: specifically, the business glossary (see Chapter 6, Metadata Management for more information on business glossaries). I encourage you to go back to the requester and ask, “ What question are you trying to answer?”

For example, the requester may have been asking for access to a finance database in order to gather information about revenue for a specific product. They wanted access to the database so that they could query the database for the data they needed. However, in this example, what they may not know is that your team already produces a certified dashboard with revenue by product that is available in the Data Marketplace (see Chapter 6, Metadata Management for more on Data Marketplaces). You can save the requester a lot of time and risk of producing inconsistent information by showing them the Data Marketplace and how they can more easily find what they need.

Because your Data Marketplace is full of certified, tested, and trusted data assets, the requestor can easily search for and find the data they need to answer their question. In this example, the requestor can locate the Revenue by Product dashboard and use the existing filters to sort by the time horizon they are interested in, with the additional comfort that the data is certified, validated, and trustworthy. Everyone wins.

Building an optimal Data Lineage capability

Section titled “Building an optimal Data Lineage capability”

Now that we understand more about data lineage, what it looks like, who is involved, and the benefits, let’s explore how to build an optimal data lineage capability for your organization. First, you need to assess the complexity of your organization. Are you a large, highly regulated industry or are you a small, single-product company? Not every organization will need a fully robust, state-of-the-art data lineage. You may also start by building data lineage manually to prove the capability before investing hundreds of thousands, if not more, into a more robust tool.

Prioritize the scope of your implementation. Begin with a single report or single metric as a pilot and prove the capability. Gather a small group of individuals who are a part of the production of this report and help them understand the value of understanding the journey of data across the organization to produce their report or metric. Trace the data’s journey, identify opportunities for simplicity and remediation of issues, and measure the quality of the data.

Show the benefits of the pilot widely across the organization. Better yet, have the report or metric owner tell this story on your behalf. Have them share how their job has been simplified and/or improved because of this capability. Your next challenge will be to prioritize those who will step forward, wanting the same benefits seen in the pilot.

This is a great time to discuss and prioritize the following:

  • Why you should have full end-to-end lineage (and for which use cases)
  • Why you should not have full end-to-end lineage and alternatives

Not every data element enterprise-wide needs full lineage. You will need to prioritize the data assets that matter most. Remember the ROI calculation, and focus on the biggest ROI cases. The best approach for your organization will depend on the size and complexity of your data landscape and the resources available to make it a success. Start small and scale from there.

As you work to deploy a strong technical metadata capability within your organization, it helps to work in concert with your business metadata capability. As you are working to progress this capability across programs or data domains, having your data catalog updated as you go, defining key data elements, and aligning with technical metadata, including lineage, will help you build confidence in the quality of both business and technical metadata. Being able to show your users that you have both business and technical depth of understanding that is reliable will translate into strong reliance on your capabilities. Remember to start by defining the scope to help set expectations regarding what the business will get from this capability, and when. Ensure you have clear roles and responsibilities, along with clear, transparent, and published metrics to measure your success. Lastly, don’t forget to tell stories of success as you go.