---
title: "Data Lineage at Slack"
description: "Slack built a central Data Lineage Service that automatically captures table- and column-level lineage by hooking Airflow success callbacks and dashboard audit logs, then parsing the submitted SQL with ANTLR (backed by a large unit-test suite)."
url: "https://swe.quest/articles/data-lineage-at-slack-fbf2aa4b9e9054d0"
canonical: "https://slack.engineering/data-lineage-at-slack/"
source: "Slack Engineering"
published: "2021-08-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["data-pipelines","privacy","analytics"]
---

# Data Lineage at Slack

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2021-08-17, 8 min read, Case study. Original: [https://slack.engineering/data-lineage-at-slack/](https://slack.engineering/data-lineage-at-slack/)

## Summary

Slack built a central Data Lineage Service that automatically captures table- and column-level lineage by hooking Airflow success callbacks and dashboard audit logs, then parsing the submitted SQL with ANTLR (backed by a large unit-test suite). Raw lineage lands in RDS MySQL, and a daily Spark job uses Pregel to traverse the dependency graph and write a flattened Hive table with a 'layer' column, so transitive downstream dependencies come back from a single query. A Data Portal notify feature uses this lineage to message downstream owners in Slack about deprecations and retention changes. Lineage for non-SQL Spark jobs, a graph database and automated schema-change alerts are listed as future work.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

- Airflow DAGs ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- Spark basics ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))

## Keywords

Airflow, ANTLR, Pregel, Hive, Presto, Spark, GDPR, AWS RDS

## Related posts

- [How Meta discovers data flows via lineage at scale](https://swe.quest/articles/how-meta-discovers-data-flows-via-lineage-at-scale-8ef1c9f35e0ab6a8.md): Meta Engineering · 2025-01-23 · Medium · 13 min read · Privacy, Static analysis, Data pipelines, Observability
  Meta builds a data lineage graph across its web, data warehouse and AI systems to find where sensitive data such as Facebook Dating religion fields flows, so privacy controls like Policy Zones can be applied.
- [How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline](https://swe.quest/articles/how-grab-built-scarlet-the-ai-teammate-that-turns-a-slack-message-into-a-cb0afbb754a543cf.md): Grab Engineering · 2026-11-23 · Medium · 12 min read · AI agents, Data pipelines, Testing, Identity & auth, LLMs
  Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill.
- [Scaling Privacy Infrastructure for GenAI Product Innovation](https://swe.quest/articles/scaling-privacy-infrastructure-for-genai-product-innovation-98d3311fada3a633.md): Meta Engineering · 2025-10-23 · Easy · 9 min read · Privacy, Data pipelines, LLMs, Observability
  Meta scales its Privacy Aware Infrastructure (PAI) to cover GenAI products such as its AI glasses, using cross-stack data lineage as the foundation for automated privacy enforcement.
- [Unlocking Efficiency and Performance: Navigating the Spark 3 and EMR 6 Upgrade Journey at Slack](https://swe.quest/articles/unlocking-efficiency-and-performance-navigating-the-spark-3-and-emr-6-upgrade-56a4dac14be6617c.md): Slack Engineering · 2024-07-02 · Medium · 9 min read · Data pipelines, Analytics & OLAP, Performance engineering, Cloud platforms, Refactoring & migrations
  Slack migrated 60+ EMR clusters serving 40+ teams from EMR 5 (Spark 2.4/Hive 2) to EMR 6 with Spark 3 as the single compute engine.
- [From SSH to REST: A Security-Driven Modernization of Slack’s EMR Data Pipelines](https://swe.quest/articles/from-ssh-to-rest-a-security-driven-modernization-of-slack-s-emr-data-pipelines-36e08660699cdbd7.md): Slack Engineering · 2026-05-05 · Medium · 13 min read · Data pipelines, Security, Refactoring & migrations, Cloud platforms, Scheduling
  Slack replaced 700+ SSH-based Airflow operators that ran jobs directly on EMR master nodes with REST-based submission through Quarry, its internal job gateway.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
