szehon-ho commented on issue #2435: URL: https://github.com/apache/iceberg/issues/2435#issuecomment-826669837
Ah sorry I was not clear, I was looking through the code brainstorming about the implementation and the problem was this: -Currently ManifestGroup::planFiles() returns iterable of FileScanTask (actual class BaseFileScanTask) -But FileScanTask has only list of DataFiles. So if for RepairManifest, we launch a Spark job on FileScanTasks like for normal scans, we will lose track of the ManifestFile that each DataFile belonged to, which we need after we collect the result to repair the relevant ManifestFIle. So my idea is either: - Add ManifestFile as a member of BaseFileScanTask (it's available in ManifestGroup::planFiles but just not added). This would increase the memory usage a bit for general scan planning. - Have a new specialized type of BaseFileScanTask that has this ManifestFile field. But then it's a bit awkward to have it returned only by ManifestGroup::planFiles only for RepairManifestAction (flag based, or separate method). Thanks -- 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]
