[flink] Implement FLIP-314 LineageVertexProvider for source and sink connectors#7311
Open
jsingh-yelp wants to merge 1 commit intoapache:masterfrom
Open
[flink] Implement FLIP-314 LineageVertexProvider for source and sink connectors#7311jsingh-yelp wants to merge 1 commit intoapache:masterfrom
jsingh-yelp wants to merge 1 commit intoapache:masterfrom
Conversation
7fc3948 to
de23686
Compare
de23686 to
c1e883e
Compare
jsingh-yelp
commented
Mar 4, 2026
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.flink</groupId> | ||
| <artifactId>flink-table-api-java-bridge</artifactId> |
Contributor
Author
There was a problem hiding this comment.
This is required because since now we have to import DataStreamScanProvider in flink 2-common. Code ref: https://github.com/apache/flink/blob/c0479c74f2b736aaed00b4d9fb1b14ad296e562d/flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/connector/source/DataStreamScanProvider.java#L40
Contributor
Author
|
@JingsongLi can I please have a review on this |
Contributor
|
Cool, @yunfengzhou-hub can you take a look? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
LineageVertexProviderwhich helps flink (FLIP-314) to generate lineage events with additional details which flink don't have access to.Tests
API and Format
PaimonDataStreamScanProviderandPaimonDataStreamSinkProviderare constructed callers now use createProvider() factory methods instead of direct constructors. This is necessary because the FLIP-314 implementation requires the returnedScanRuntimeProvider/SinkRuntimeProviderto also implementLineageVertexProvider, an interface that only exists in Flink 1.20+. To maintain backward compatibility with older Flink versions, the factory methods delegate to a version-specificDataStreamProviderFactory: the Flink 2.x variant wraps the provider with lineage support, while the Flink 1.x stub returns it unchanged.Documentation
Note: This change also depends on two other changes and one of them is already merged. Other two changes: