CoderNasim2023 opened a new pull request, #18029:
URL: https://github.com/apache/iceberg/pull/18029

   ## Summary
   
   Fix `DeleteOrphanFilesSparkAction` so `compareToFileList` only includes
   files under the configured table location.
   
   Previously, raw `startsWith(location)` matching allowed sibling paths such as
   `table-backup` and `table_old` to be treated as in-scope.
   
   The fix adds a path separator boundary and regression coverage across the
   supported Spark versions.
   
   ## Tests
   
   - Spark 3.5 sibling-path regression test
   - Spark 4.0 sibling-path regression test
   - Spark 4.1 sibling-path regression test
   - Spark 4.2 sibling-path regression test
   - Full Spark 4.1 `TestRemoveOrphanFilesAction`
   - `spotlessCheck`
   - `git diff --check`
   
   ---
   **AI Disclosure**
   - Model: Auto model
   - Platform/Tool: GitHub Copilot
   - Human Oversight: fully reviewed 
   - Prompt Summary: Fix sibling-prefix matching in Spark orphan-file cleanup.


-- 
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]

Reply via email to