jotarada opened a new issue, #12586: URL: https://github.com/apache/iceberg/issues/12586
### Apache Iceberg version 1.8.1 (latest release) ### Query engine Spark ### Please describe the bug 🐞 To overcome the issue reported at https://github.com/apache/iceberg/issues/12554 I tried to compact data files and then expire all snapshots, so we should only have data files and metadata files to move and no delete files. But when I run rewrite_table_path after those steps i got `gs://bucket/dir/data/id_trunc_2=6f/20250319_111721_22254_g4jwb-90e36525-e698-4d52-82a9-9d6700b951f3.parquet ` This was a delete file that is not anymore part of the table, and is not even present anymore, but for some reason the rewrite_table_path still tries to rewrite it. Steps to reproduce * Have some table we some data * Delete a record from the table using MOR (trino does it by default) * Compact data files **twice** ``` CALL iceberg.system.rewrite_data_files( table =>'schema.table', options => map('remove-dangling-deletes', 'true', 'delete-file-threshold', '0') ) ``` * Expire snapshots ``` CALL iceberg.system.expire_snapshots( table => 'schema.table', older_than => TIMESTAMP ' NOW ) ``` * Try to table re-write ``` CALL iceberg.system.rewrite_table_path( table => 'schema.table', source_prefix => 'current_location', target_prefix => 'new_location' ) ``` ### Willingness to contribute - [ ] I can contribute a fix for this bug independently - [ ] I would be willing to contribute a fix for this bug with guidance from the Iceberg community - [x] I cannot contribute a fix for this bug at this time -- 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: issues-unsubscr...@iceberg.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org