rdblue commented on a change in pull request #3120:
URL: https://github.com/apache/iceberg/pull/3120#discussion_r711822189
##########
File path: api/src/main/java/org/apache/iceberg/io/CloseableIterable.java
##########
@@ -117,6 +118,14 @@ public O next() {
};
}
+ static <E> CloseableIterable<E> combine(Iterable<? extends Iterable<E>>
iterable,
+ ExecutorService executorService,
+ int parallelism) {
+ Preconditions.checkNotNull(executorService, "ExecutorService shouldn't be
null");
+ Preconditions.checkArgument(parallelism > 0, "Parallelism must be > 0");
Review comment:
Here as well, I think the error message should follow our conventions to
state the problem, give context, and then show the bad value: "Invalid
parallelism (not positive): %s"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]