-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(model 2.0): implement extractRelationshipsFromAspect util method (…
- Loading branch information
Showing
12 changed files
with
240 additions
and
4 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
38 changes: 38 additions & 0 deletions
38
...models/src/main/pegasus/com/linkedin/testing/AnnotatedAspectBarWithRelationshipFields.pdl
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,38 @@ | ||
namespace com.linkedin.testing | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
@gma.aspect.column.name = "annotatedaspectbarwithrelationshipfields" | ||
@gma.model = "ASPECT" | ||
record AnnotatedAspectBarWithRelationshipFields { | ||
/** | ||
* For unit tests | ||
*/ | ||
value: string | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
integers: optional array[int] | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
nonRelationshipStructs: optional array[CommonAspect] | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
relationshipFoos: optional array[AnnotatedRelationshipFoo] | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
relationshipBars: optional array[AnnotatedRelationshipBar] | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
moreRelationshipFoos: optional array[AnnotatedRelationshipFoo] | ||
} |
18 changes: 18 additions & 0 deletions
18
...-models/src/main/pegasus/com/linkedin/testing/AnnotatedAspectFooWithRelationshipField.pdl
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,18 @@ | ||
namespace com.linkedin.testing | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
@gma.aspect.column.name = "annotatedaspectfoowithrelationshipfield" | ||
@gma.model = "ASPECT" | ||
record AnnotatedAspectFooWithRelationshipField { | ||
/** | ||
* For unit tests | ||
*/ | ||
value: string | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
relationshipFoo: optional array[AnnotatedRelationshipFoo] | ||
} |
24 changes: 24 additions & 0 deletions
24
...nnotations-test-models/src/main/pegasus/com/linkedin/testing/AnnotatedRelationshipBar.pdl
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,24 @@ | ||
namespace com.linkedin.testing | ||
|
||
import com.linkedin.common.Urn | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
@pairings = [ { | ||
"destination" : "com.linkedin.common.urn.Urn", | ||
"source" : "com.linkedin.common.urn.Urn" | ||
} ] | ||
@gma.model = "RELATIONSHIP" | ||
record AnnotatedRelationshipBar { | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
source: Urn | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
destination: Urn | ||
} |
24 changes: 24 additions & 0 deletions
24
...nnotations-test-models/src/main/pegasus/com/linkedin/testing/AnnotatedRelationshipFoo.pdl
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,24 @@ | ||
namespace com.linkedin.testing | ||
|
||
import com.linkedin.common.Urn | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
@pairings = [ { | ||
"destination" : "com.linkedin.common.urn.Urn", | ||
"source" : "com.linkedin.common.urn.Urn" | ||
} ] | ||
@gma.model = "RELATIONSHIP" | ||
record AnnotatedRelationshipFoo { | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
source: Urn | ||
|
||
/** | ||
* For unit tests | ||
*/ | ||
destination: Urn | ||
} |
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