Anurag1428 opened a new pull request, #2722: URL: https://github.com/apache/iceberg-go/pull/2722
Closes #2719 **Cause:** `DeleteOrphanFiles` treated every unreferenced file under the table location as an orphan. Files that belong to other tools, such as `_delta_log/` and `.hoodie/`, were deleted once they passed the `older-than` age. **Change:** `planOrphanFiles` now skips any file with a path segment (relative to the scanned location) that starts with `_` or `.`. A directory named after a partition field, such as `_part=1`, is kept as a normal data directory. This follows Java's `PartitionAwareHiddenPathFilter`. I did not add a filter option or a CLI flag, to keep this change small. **Tests:** `TestIsHiddenPath` covers `_delta_log`, `.hoodie`, hidden and underscore files, partition directories with and without an underscore, a hidden segment in the root itself, and a different URL scheme for the same location. The existing orphan cleanup tests still pass. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
