paimon icon indicating copy to clipboard operation
paimon copied to clipboard

[Feature] Support native Flink 2.0 job lineage (FLIP-314) for Paimon tables

Open jsinghkukreja opened this issue 9 months ago • 2 comments

Search before asking

  • [x] I searched in the issues and found nothing similar.

Motivation

Flink 2.0 introduced native job lineage as a first-class feature (FLIP-314). When a job starts, Flink builds a LineageGraph of sources and sinks and fires it to any registered JobStatusChangedListener, enabling external lineage systems (for example open lineage) to consume accurate lineage without custom instrumentation.

The FLIP-314 proposal itself uses Paimon as one of its motivating example.

Solution

To support Flink’s native lineage tracking, implement the LineageVertexProvider interface in Paimon’s FlinkSource and FlinkSink classes. The implementation should return the table name in the name() method and the warehouse path in the namespace() method, enabling table-level lineage reporting to external systems. This is a small, self-contained change with no impact on Paimon’s internal data model or APIs.

Note: I see there were other similar issues reported related to PIP-5 ( https://cwiki.apache.org/confluence/display/PAIMON/PIP-5%3A+Paimon+Table+And+Data+Lineage+For+Flink), I ended up creating a separate issue because this change is much more contained with in Flink's effort to support native table-level lineage and should require lot less effort.

Anything else?

No response

Are you willing to submit a PR?

  • [x] I'm willing to submit a PR!

jsinghkukreja avatar Feb 25 '26 23:02 jsinghkukreja

+1 for this!

JingsongLi avatar Feb 26 '26 07:02 JingsongLi

Changes done for this feature:

  • Enhanced existing Paimon Flink Table API lineage by adding dataset namespace handling and enriching datasets with Paimon catalog & table config metadata: https://github.com/apache/paimon/pull/7311, https://github.com/apache/paimon/pull/7576
  • Added lineage support for Paimon Flink non-table DataStream APIs: https://github.com/apache/paimon/pull/8001

jsinghkukreja avatar May 27 '26 20:05 jsinghkukreja