forked from linkedin/datahub-gma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add query filter models for gRPC API (linkedin#392)
* feat: add query filter models * fix * minor fix
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
dao-api/src/main/pegasus/com/linkedin/metadata/query/EntityQueryFilter.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,17 @@ | ||
namespace com.linkedin.metadata.query | ||
|
||
/** | ||
* Filter for finding source/destination entity(s) | ||
*/ | ||
record EntityQueryFilter { | ||
|
||
/** | ||
* dataset/azkabanJob/corpUser/etc. | ||
*/ | ||
entityType: optional string = "" | ||
|
||
/** | ||
* Filter for finding an record or a collection of records | ||
*/ | ||
filter: optional LocalRelationshipFilter | ||
} |
17 changes: 17 additions & 0 deletions
17
dao-api/src/main/pegasus/com/linkedin/metadata/query/RelationshipQueryFilter.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,17 @@ | ||
namespace com.linkedin.metadata.query | ||
|
||
/** | ||
* Filter for relationship in query | ||
*/ | ||
record RelationshipQueryFilter { | ||
|
||
/** | ||
* ownedBy/downstreamOf/etc. | ||
*/ | ||
relationshipType: optional string = "" | ||
|
||
/** | ||
* Filter for finding an record or a collection of records | ||
*/ | ||
filter: optional LocalRelationshipFilter | ||
} |