pvary commented on issue #9386: URL: https://github.com/apache/iceberg/issues/9386#issuecomment-1875644441
If a file is bigger than the TARGET_FILE_SIZE, it will create multiple splits when we read it. The last split of the file is a good candidate to add to merge with a new split, so it could be reasonable to rewrite these files. For example, you have multiple files: - File1: 158M - File2: 158M If the files are not rewriten, the resulting scan will have 4 splits (File1(0-128M), File1(129-158M), File2(0-128M), File2(129-159M)). If the files are rewritten the resulting scan will have 3 splits (File1' (File1(0-128)), File2' (File2(0,138)) and File3' (File1(129-158M) + File2(129-158M))) Having 3 splits instead of 4 could have a serious performance impact. -- 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