Skip to content

Support Automatic Cleanup of Outdated Lineage Entries #22445

Description

@Prajwal214

Feature
Add feature issue reference
-- Currently, lineage is not automatically cleaned up when source or target tables or queries are modified. This is by design, as safely comparing modified queries to determine which lineage entries should be deleted is non-trivial. However, over time this can lead to stale or misleading lineage information in the UI.

Describe the task
A clear and concise description of what the bug is.
-- Introduce a mechanism to support automatic cleanup of lineage that is no longer relevant due to changes in source metadata (e.g., queries, tables). Some possible approaches include:

  • Detecting and comparing query changes during ingestion, and flagging outdated lineage.
  • Adding an expiration time or TTL on lineage entries with periodic validation.
  • Leveraging versioning or checksums of queries to detect drift and trigger cleanup.
  • Allowing configuration for automatic pruning of lineage based on timestamps or change events.
  • Adding optional flags in the ingestion pipeline to clean or refresh lineage selectively.

Agreed approach (2.2 planning, 29 Oct 2026)

  • Every lineage run refreshes a "last seen" time on each lineage edge it reports.
  • The Data Retention app removes edges that no lineage run has reported for a configurable period, for example 90 days.
  • An edge from a pipeline that still runs keeps being refreshed, so it stays. An edge from a retired pipeline stops being refreshed and is cleaned up.
  • This needs the ingestion team: lineage connectors must report every edge they still see on each run.

Activity

  1. added theissue type on Jul 18, 2025
  2. moved this to Integration in Roadmapon Jul 18, 2025
  3. moved this from Sprint Backlog 🚧 to Validation 🧐 in Roadmapon Sep 5, 2025
  4. added this to Jan - 2026 and removed this from Roadmapon Dec 4, 2025
  5. changed the issue type fromtoon Dec 4, 2025
  6. added this to Shipping and removed this from Jan - 2026on Feb 18, 2026
  7. added this to March - 2026and Shipping and removed this from Shippingon Mar 2, 2026
  8. mohittilala commented on Mar 19, 2026

    @mohittilala
    Contributor

    This can be better achieved via backend retention policies than ingestion.

  9. removed their assignment
    on Mar 19, 2026
  10. deathwish commented on Mar 27, 2026

    @deathwish

    @mohittilala are there any examples for how this can be achieved using "backend retention policies?" Automatic synchronization seems much better.

  11. jsinghkukreja commented on Mar 29, 2026

    @jsinghkukreja

    +1 on this the issue, some form of TTL to clean up stale lineage edges would be really useful.

  12. moved this to Design 🎨 in Shippingon Oct 22, 2026
  13. added
    area:lineage
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Ingestionarea:lineagebackend

Projects

  • Status
    Design 🎨

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions