innocent123 commented on issue #8994:
URL: https://github.com/apache/iceberg/issues/8994#issuecomment-1807569922

   
   
   > > The problem is that the path in the manifest file does not exist in the 
hdfs. However, I cannot modify the manifest file directly. Is there an api that 
can modify the manifest file to delete a certain line of records?
   > 
   > If you want to repair the table by ignoring the deleted files, 
`org.apache.iceberg.Table#newDelete` can remove files from iceberg manifests. 
However, this approach can lead to data loss.
   > 
   > Another approach is to rollback to a historical snapshot, but it may not 
be feasible if you have already performed snapshot expiration.
   
   Thank you very much! my historical snapshot is lost ,You can only recover by 
deleting files.One more question.Is there a way to quickly know that the 
manifest file no longer exists in the table?Or do I have to write the code to 
pull the manifest file and compare it with the hdfs 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: issues-unsubscr...@iceberg.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

Reply via email to