Skip to content

Commit

Permalink
Typo fix for previous commit.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand committed Jan 6, 2023
1 parent 1f7b151 commit 90bae1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public static Map<String, OpenSearchDataType> traverseAndFlatten(
Map<String, OpenSearchDataType> result = new LinkedHashMap<>();
for (var entry : tree.entrySet()) {
result.put(entry.getKey(), entry.getValue().cloneEmpty());
result.putAll(//(Map<String, OpenSearchDataType>)
result.putAll(
traverseAndFlatten(entry.getValue().properties)
.entrySet().stream()
.collect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public Map<String, ExprType> getFieldTypes() {
return OpenSearchDataType.traverseAndFlatten(cachedFieldTypes).entrySet().stream()
.collect(
LinkedHashMap::new,
(map, item) -> map.put(item.getKey(), item.getValue()),
(map, item) -> map.put(item.getKey(), item.getValue().getExprType()),
Map::putAll);
}

Expand Down

0 comments on commit 90bae1f

Please sign in to comment.