Skip to content

Commit

Permalink
fix the bug: duplicate key exception
Browse files Browse the repository at this point in the history
The exception is thrown during rest call /v3/entity/dataset/{urn}/structuredProperties for version != 0
  • Loading branch information
andrzej-lecki authored Nov 4, 2024
1 parent 00a2751 commit b9ec70c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected Stream<Pair<ReadItem, Boolean>> readMutation(
items.stream()
.filter(i -> i.getRecordTemplate() != null)
.map(i -> Pair.of(i.getUrn(), i.getAspect(StructuredProperties.class)))
.collect(Collectors.toMap(Pair::getKey, Pair::getValue));
.collect(Collectors.toMap(Pair::getKey, Pair::getValue, (a, b) -> a)));

// Apply filter
Map<Urn, Boolean> mutatedEntityStructuredPropertiesMap =
Expand Down

0 comments on commit b9ec70c

Please sign in to comment.