laserninja opened a new issue, #14918:
URL: https://github.com/apache/gravitino/issues/14918
### Describe the feature
Add an optional lineage store behind the existing lineage framework, plus a
read API that
returns the upstream and downstream graph of a table, view, fileset, topic
or model at dataset
or column granularity.
### Motivation
Gravitino receives OpenLineage events, including column-level lineage from
the Gravitino Spark
plugin, but the shipped sinks only log or forward them. Nothing is kept, so
Gravitino cannot
answer "what reads this table" or "what is affected if I drop this column".
Answering those
today requires a second system such as Marquez, which has no knowledge of
Gravitino privileges,
tags or renames.
### Describe the solution
- An opt-in `store` lineage sink writing aggregated dataset and column edges
to the relational
backend, behind a `LineageStore` SPI. Default behavior is unchanged.
- `GET /api/metalakes/{metalake}/objects/{type}/{fullName}/lineage` with
`direction`, `depth`
and an optional `column`.
- Per-node authorization on read: datasets the caller cannot load are
returned masked.
- Renames and drops made through Gravitino applied to the stored graph;
retention for edges
that are no longer observed.
- Java client, Python client and MCP support.
A design document will follow in a PR. Server-side lineage inference and
identifier mapping for
non-Gravitino producers (#10850) are out of scope.
### Additional context
Discussion: https://github.com/apache/gravitino/discussions/12835
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]