Model and store column lineage in Marquez DB#2096
Merged
Merged
Conversation
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
|
Thanks for opening your first pull request in the Marquez project! Please check out our contributing guidelines (https://github.com/MarquezProject/marquez/blob/main/CONTRIBUTING.md). |
Signed-off-by: mzareba <mzareba382@gmail.com>
…o DatasetRecord, write test for createLineageRow() invocation Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
mobuchowski
reviewed
Sep 6, 2022
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #2096 +/- ##
============================================
+ Coverage 75.49% 75.78% +0.29%
- Complexity 1045 1061 +16
============================================
Files 206 209 +3
Lines 4925 5006 +81
Branches 399 403 +4
============================================
+ Hits 3718 3794 +76
Misses 763 763
- Partials 444 449 +5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: mzareba <mzareba382@gmail.com>
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
…marquez into add-column-level-lineage
Member
|
@mzareba382 I was wondering if this PR is now outdated? /cc @mobuchowski, @pawel-big-lebowski |
mobuchowski
requested changes
Sep 27, 2022
2c5151b to
e18c13e
Compare
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
e18c13e to
21dac22
Compare
6 tasks
mobuchowski
approved these changes
Sep 28, 2022
|
Great job! Congrats on your first merged pull request in the Marquez project! |
jonathanpmoraes
referenced
this pull request
in nubank/NuMarquez
Feb 6, 2025
* Create database representation, model classes Signed-off-by: mzareba <mzareba382@gmail.com> * Implement ColumnLevelLineageDao Signed-off-by: mzareba <mzareba382@gmail.com> * Instantiate ColumnLevelLineageDao in updateBaseMarquezModel Signed-off-by: mzareba <mzareba382@gmail.com> * Upsert ColumnLevelLineageRow to db, model representation in LineageEvent Signed-off-by: mzareba <mzareba382@gmail.com> * Fix problems in OpenLineageDao, add a list of ColumnLevelLineageRow to DatasetRecord, write test for createLineageRow() invocation Signed-off-by: mzareba <mzareba382@gmail.com> * Change wildcard imports to single class imports Signed-off-by: mzareba <mzareba382@gmail.com> * Change wildcard imports to single class imports Signed-off-by: mzareba <mzareba382@gmail.com> * Change wildcard imports to single class imports Signed-off-by: mzareba <mzareba382@gmail.com> * Apply spotless Signed-off-by: mzareba <mzareba382@gmail.com> * Check for ds.getFacets not null Signed-off-by: mzareba <mzareba382@gmail.com> * Format fix Signed-off-by: mzareba <mzareba382@gmail.com> * Update testUpdateMarquezModelDatasetWithColumnLineageFacet Signed-off-by: mzareba <mzareba382@gmail.com> * Test for column_level_lineage upsert. Signed-off-by: mzareba <mzareba382@gmail.com> * Apply spotless Signed-off-by: mzareba <mzareba382@gmail.com> * switch to data field references Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> * fix broken tests Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> * test when dataset_field is missing Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> * add input_dataset_version_uuid field Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> * increase db file version Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> * increase db file version Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> * rename ColumnLevelLineage -> ColumnLineage Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> Signed-off-by: mzareba <mzareba382@gmail.com> Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> Co-authored-by: Mariusz Zaręba <mzareba382@getindata.com> Co-authored-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
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.
Problem & solution
This PR adds a column-level lineage representation and API endpoint to retrieve column-level lineage data from Marquez's database. It is based on OpenLineage's column-level lineage facet
Column-level lineage data is being stored in separate table with following fields:
Relevant tickets are:
Solution:
Checklist
CHANGELOG.mdwith details about your change under the "Unreleased" section (if relevant, depending on the change, this may not be necessary).sqldatabase schema migration according to Flyway's naming convention (if relevant)