manuzhang commented on issue #12076:
URL: https://github.com/apache/iceberg/issues/12076#issuecomment-2614450507

   @ruotianwang Are you referring to the case where there are fewer commits 
than maxCommits due to file group rewrite failure? 
   
   ```java
   int groupsPerCommit = IntMath.divide(ctx.totalGroupCount(), maxCommits, 
RoundingMode.CEILING);
   ```
   
   With the above algorithm, I can't think of an example that the number of 
commits can be smaller than maxCommits without any file group failure.


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to