Skip to content

Commit

Permalink
Add current open writers to error message in Iceberg
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-o-hara authored and ebyhr committed Apr 30, 2024
1 parent a0103b1 commit d8e5dcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private int[] getWriterIndexes(Page page)
verify(writers.size() == pagePartitioner.getMaxIndex() + 1);

if (currentOpenWriters > maxOpenWriters) {
throw new TrinoException(ICEBERG_TOO_MANY_OPEN_PARTITIONS, format("Exceeded limit of %s open writers for partitions", maxOpenWriters));
throw new TrinoException(ICEBERG_TOO_MANY_OPEN_PARTITIONS, format("Exceeded limit of %s open writers for partitions: %s", maxOpenWriters, currentOpenWriters));
}

return writerIndexes;
Expand Down

0 comments on commit d8e5dcf

Please sign in to comment.