rdblue commented on a change in pull request #1569:
URL: https://github.com/apache/iceberg/pull/1569#discussion_r502830796
##########
File path: api/src/main/java/org/apache/iceberg/transforms/Bucket.java
##########
@@ -44,6 +45,9 @@
@SuppressWarnings("unchecked")
static <T> Bucket<T> get(Type type, int numBuckets) {
+ Preconditions.checkArgument(numBuckets > 0,
+ "The number of bucket(s) must be larger than zero, but is %s",
numBuckets);
Review comment:
Same here. What about "Invalid number of buckets: %s (must be > 0)"?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]