You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Automatic Cleanup of Outdated Lineage Entries #22445
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.
Reacted by Azade, victordutto-vntd and Zack Colello
Activity
mohittilala commentedon Mar 19, 2026
This can be better achieved via backend retention policies than ingestion.
deathwish commentedon Mar 27, 2026
@mohittilala are there any examples for how this can be achieved using "backend retention policies?" Automatic synchronization seems much better.
jsinghkukreja commentedon Mar 29, 2026
+1 on this the issue, some form of TTL to clean up stale lineage edges would be really useful.