Skip to content

Commit

Permalink
Throw TrinoException when Iceberg commit fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pajaks committed Sep 6, 2024
1 parent 21198fa commit b3e4cb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ private static void commitUpdateAndTransaction(SnapshotUpdate<?> update, Connect
commit(update, session);
commitTransaction(transaction, operation);
}
catch (UncheckedIOException e) {
catch (UncheckedIOException | ValidationException e) {
throw new TrinoException(ICEBERG_COMMIT_ERROR, format("Failed to commit during %s: %s", operation, firstNonNull(e.getMessage(), e)), e);
}
}
Expand Down

0 comments on commit b3e4cb9

Please sign in to comment.