You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "anushshetty3010 (via GitHub)" <gi...@apache.org> on 2026/03/13 04:41:42 UTC

[I] Support for Orphan File Cleanup in Iceberg Java SDK Comparable to Spark Action API [iceberg]

anushshetty3010 opened a new issue, #15612:
URL: https://github.com/apache/iceberg/issues/15612

   ### Query engine
   
   Iceberg JAVA SDK (Non Spark)
   
   ### Question
   
   Hi All, I have noticed that the Iceberg Spark runtime (iceberg-spark-runtime-3.5_2.12-1.6.1.jar) provides an option within the Spark Action API to clean up orphan files. However, I do not see a similar option available in the Iceberg Java SDK (non-Spark). How can we achieve orphan file cleanup using the Iceberg Java SDK without relying on Spark? Any help would be appreciated.
   
   <img width="802" height="397" alt="Image" src="https://github.com/user-attachments/assets/c8aa7a4e-4966-4c6a-9520-fabff231359a" />
   
   
   Regards,
   Anush 


-- 
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] Support for Orphan File Cleanup in Iceberg Java SDK Comparable to Spark Action API [iceberg]

Posted by "anushshetty3010 (via GitHub)" <gi...@apache.org>.
anushshetty3010 commented on issue #15612:
URL: https://github.com/apache/iceberg/issues/15612#issuecomment-4065021474

   @RussellSpitzer Thank you for the clarification.


-- 
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] Support for Orphan File Cleanup in Iceberg Java SDK Comparable to Spark Action API [iceberg]

Posted by "anushshetty3010 (via GitHub)" <gi...@apache.org>.
anushshetty3010 closed issue #15612: Support for Orphan File Cleanup in Iceberg Java SDK Comparable to Spark Action API
URL: https://github.com/apache/iceberg/issues/15612


-- 
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] Support for Orphan File Cleanup in Iceberg Java SDK Comparable to Spark Action API [iceberg]

Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on issue #15612:
URL: https://github.com/apache/iceberg/issues/15612#issuecomment-4056465611

   There isn't a method at the moment because of how expensive remove-orphans is. At the moment I would recommend that if you do need to run it, just use spark in local mode and invoke it. Then at least the shuffle operator should prevent an OOM 🤞 


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