iceberg
iceberg copied to clipboard
numBuckets can cause division by zero
The numBuckets member in Bucket class is not verified and I managed to create a table with a Bucket partition with zero buckets. This later could cause an exception due to modulo by zero here: https://github.com/apache/iceberg/blob/c28d1c8ba6322af07f0206c4cf3fdad875f37ac1/api/src/main/java/org/apache/iceberg/transforms/Bucket.java#L87
We can do some validation on the input parameters when creating the bucket partition.
It seems that some time has passed and there is no reply. I would provide a relevant PR to fix this small problem.
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'