Skip to content

Commit

Permalink
Update paimon-core/src/main/java/org/apache/paimon/utils/BulkFormatMa…
Browse files Browse the repository at this point in the history
…pping.java

Co-authored-by: tsreaper <[email protected]>
  • Loading branch information
leaves12138 and tsreaper authored Dec 9, 2024
1 parent 3f102a3 commit a906414
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ static Pair<int[], RowType> trimKeyFields(
if (positionMap.containsKey(id)) {
map[i] = positionMap.get(id);
} else {
trimmedFields.add(keyField ? f : field);
map[i] = positionMap.computeIfAbsent(id, k -> index.getAndIncrement());
map[i] = positionMap.put(id, trimmedFields.size());
trimmedFields.add(f);
}
} else {
throw new RuntimeException("Can't find field with id: " + id + " in fields.");
Expand Down

0 comments on commit a906414

Please sign in to comment.