-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create Dataset Lineage
- Loading branch information
Showing
8 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
16 changes: 16 additions & 0 deletions
16
src/main/java/io/github/jpmorganchase/fusion/model/DatasetLineage.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.github.jpmorganchase.fusion.model; | ||
|
||
import java.util.Set; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
import lombok.Value; | ||
|
||
@Value | ||
@EqualsAndHashCode | ||
@ToString | ||
@Builder | ||
public class DatasetLineage { | ||
|
||
Set<DatasetReference> source; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/io/github/jpmorganchase/fusion/model/DatasetReference.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.github.jpmorganchase.fusion.model; | ||
|
||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
import lombok.Value; | ||
|
||
@Value | ||
@EqualsAndHashCode | ||
@ToString | ||
@Builder | ||
public class DatasetReference { | ||
|
||
String catalog; | ||
String dataset; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/resources/__files/dataset/dataset-SD0002-lineage-create-request.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"source" : [ { | ||
"catalog" : "foo", | ||
"dataset" : "d1" | ||
}, { | ||
"catalog" : "foo", | ||
"dataset" : "d2" | ||
}, { | ||
"catalog" : "bar", | ||
"dataset" : "d1" | ||
}, { | ||
"catalog" : "bar", | ||
"dataset" : "d3" | ||
} ] | ||
} |