Repository navigation
[DISCUSS] Persist lineage in Gravitino and expose a query API #12835
laserninja
started this conversation in
Ideas
Replies: 3 comments
|
@FANNG1 wdyt? |
0 replies
|
I've turned this into design so there is something specific to review:
The main decisions in it:
|
0 replies
|
I've turned this into a concrete design so there is something specific to review:
The main decisions in it:
The doc lists four open questions. The two I'd most like input on are:
@FANNG1, since you're working out the identifier mapping in #10850, I'd especially like your view on how the two designs fit together. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Background
Gravitino has a pluggable lineage framework today. An OpenLineage
RunEventarrives at the HTTP source, passes through a processor, and is handed to one or more sinks (lineage/src/main/java/org/apache/gravitino/lineage/). The default processor is a no-op, and the sinks that ship are a log file and an HTTP forwarder.What the framework does not have is anywhere to keep an event. Because nothing is stored, nothing can be asked: Gravitino cannot answer "what reads this table", "what does this column derive from", or "what breaks if I drop this" from its own API. Answering those today means running a separate lineage backend such as Marquez — and once that exists, it, not Gravitino, holds the lineage graph.
I would like to discuss adding an optional persistence layer and a read API behind the existing framework.
Why this seems worth doing
The expensive part is already solved and currently discarded. The Gravitino Spark plugin extracts column-level lineage from the query plan and resolves datasets across fileset, Iceberg, Hudi, Paimon, Hive and model catalogs. That is precisely the information a catalog needs for impact analysis, and today it passes through the server and is dropped unless an external system is attached.
Persisted lineage also compounds with metadata Gravitino already owns:
Proposal, for discussion
LineageStoreSPI alongside the existing source / processor / sink chain, with a JDBC implementation on the existing relational backend. Opt-in by configuration, so default behaviour is unchanged.metalake.catalog.schema.table, key storage on the resolved Gravitino identifier where resolution succeeds, and retain the raw OpenLineage identifier where it does not.To be explicit about scope: this does not propose server-side lineage inference. Engine-side OpenLineage integrations stay the authoritative producer, for the reasons already argued in the OpenLineage discussion. Gravitino's role here would be to resolve, store, and serve what it receives.
Open questions
lineagemodule, or does persistence belong incorebeside the entity store?Entity, or stay outside the entity store and its caching and concurrency machinery?Related
All reactions