JingsongLi commented on PR #8861: URL: https://github.com/apache/paimon/pull/8861#issuecomment-5104544880
`FormatTableScan.listDataFiles` unconditionally enters the hidden directory within the remaining `partitionLevels`. For example, when overwriting `year=2025` with `month` as a dynamic partition, `year=2025/_temporary/attempt/part.csv` treats `_temporary` as the month partition level and continues traversing it, ultimately deleting `part.csv`. I ran a local reproduction test, and the staged file was indeed deleted; the test consistently failed. The system needs to recognize the staging tree; it cannot rely solely on whether “the current path is still within a partition level” to determine whether to enter the hidden directory. -- 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]
