zhangjun0x01 opened a new issue #1667: URL: https://github.com/apache/iceberg/issues/1667
In RewriteDataFilesAction, the default value of targetSizeInBytes is 128M, if there are the following data files: 20M, 20M, 20M, 70M, 100M,The current logic is to scan these data file in turn until the sum of the data file sizes <= targetSizeInBytes, So three CombinedScanTask tasks will be generated, (20M, 20M, 20M), (70M), (100M). Obviously, it is more appropriate to generate two CombinedScanTask tasks (20M, 20M, 70M), (20M, 100M). We should optimize this algorithm to generate as few target data files as possible and make its size as close to targetSizeInBytes as possible. ---------------------------------------------------------------- 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]
