You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "nikhilindikuzha (via GitHub)" <gi...@apache.org> on 2025/04/03 04:40:32 UTC
[I] iceberg MOR - Rewrite Fails [iceberg]
nikhilindikuzha opened a new issue, #12710:
URL: https://github.com/apache/iceberg/issues/12710
### Query engine
Spark
### Question
I have created a iceberg table in version 2 with MOR statergy with one column as partition.
Using merge command i have inserted 3 records on day 1 partition.
Now I could see in day 1 partition 1 data file came.
After that , I have deleted one record from the day 1 partition using Merge into statement.
Now in day 1 partition 1 data file along with 1 *-delete.parquet file came. This delete file has reference to the above data file.
Now I wanted to move the data file to another location and update the metadata.
Incase of COW - I am able to perform the same via table.newRewrite.rewriteFiles(datafile, newdatafile) - it updates the metadata also.
But in case of MOR - getting error as
org.apache.iceberg.exceptions.ValidationExceptions : Missing required files to delete : file : <my data file path >
Tried with RewriteFiles rewriteFiles(
Set<DataFile> dataFilesToReplace,
Set<DeleteFile> deleteFilesToReplace,
Set<DataFile> dataFilesToAdd,
Set<DeleteFile> deleteFilesToAdd);
https://github.com/apache/iceberg/blob/main/api/src/main/java/org/apache/iceberg/RewriteFiles.java (edited)
--
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-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] iceberg MOR - Rewrite Fails [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on issue #12710:
URL: https://github.com/apache/iceberg/issues/12710#issuecomment-2794631640
The error message is telling you that before your rewrite files completed, a new delete file was added to a file which is being rewritten. This has to fail the operation because the new data files you are are adding have had rows removed from them.
TLDR has validation rules that make sure there is no data change and adding a new delete file is a data file. If you want to just move the data file I would suggest using the procedure for rewriting metadata paths.
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] iceberg MOR - Rewrite Fails [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #12710:
URL: https://github.com/apache/iceberg/issues/12710#issuecomment-3429997362
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] iceberg MOR - Rewrite Fails [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #12710: iceberg MOR - Rewrite Fails
URL: https://github.com/apache/iceberg/issues/12710
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] iceberg MOR - Rewrite Fails [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #12710:
URL: https://github.com/apache/iceberg/issues/12710#issuecomment-3379120606
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org