Skip to content

Commit

Permalink
fix(ERModelRelationship) UUID should mimic datahub_guid.py (#10355)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtekal authored and yoonhyejin committed Jul 16, 2024
1 parent 65edde6 commit 3c453bc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ public CompletableFuture<ERModelRelationship> get(DataFetchingEnvironment enviro
highDataset = source;
}
// The following sequence mimics datahub.emitter.mce_builder.datahub_guid
// Keys have to be in alphabetical order - Destination, ERModelRelationName and Source

String ermodelrelationKey =
"{\"Source\":\""
"{\"Destination\":\""
+ lowDataset
+ "\",\"Destination\":\""
+ highDataset
+ "\",\"ERModelRelationName\":\""
+ ermodelrelationName
+ "\",\"Source\":\""
+ highDataset
+ "\"}";

byte[] mybytes = ermodelrelationKey.getBytes(StandardCharsets.UTF_8);
Expand Down

0 comments on commit 3c453bc

Please sign in to comment.