You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "twuebi (via GitHub)" <gi...@apache.org> on 2024/08/27 16:40:10 UTC
[I] deletion & purge improvements for undelete feature in REST catalog [iceberg]
twuebi opened a new issue, #11023:
URL: https://github.com/apache/iceberg/issues/11023
### Feature Request / Improvement
Hi all,
while working on an un-drop feature for our catalog implementation, I noticed that `DROP TABLE some_tab PURGE` executed via spark 3.5 is not forwarding `purgeRequested` to the REST catalog but instead either attempts to perform all deletions on its own or, in presence of `s3.delete_enabled: false`, just ends up calling `DELETE` without the `purgeRequested` query parameter.
We would like to have a handle to prevent clients from deleting files since we'd like to add a undrop feature to the management apis of our catalog.
I'm thinking in the direction of adding a new property which disables client-side deletes. As far as I understand, this currently only exists in the S3FileIO properties, the new property could be a top-level property which would apply to other FileIOs as well.
If this property is returned as an override:
- `purgeRequested` will be sent to the REST Catalog in case of `PURGE`
- clients will not attempt to delete any metadata files / data files on receiving `DROP`
Kind regards,
Tobias
### Query engine
Spark
### Willingness to contribute
- [ ] I can contribute this improvement/feature independently
- [X] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
- [ ] I cannot contribute this improvement/feature 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-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] deletion & purge improvements for undelete feature in REST catalog [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #11023: deletion & purge improvements for undelete feature in REST catalog
URL: https://github.com/apache/iceberg/issues/11023
--
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] deletion & purge improvements for undelete feature in REST catalog [iceberg]
Posted by "twuebi (via GitHub)" <gi...@apache.org>.
twuebi commented on issue #11023:
URL: https://github.com/apache/iceberg/issues/11023#issuecomment-2355892509
https://github.com/twuebi/iceberg/commit/90805de3b415a2dae6d9d8b952966d32e2db7ffe adds the property, after reading the code a bit more, I was left wondering why the SparkCatalog is performing these deletes at all instead of delegating to the respective catalog implementation.
If found this [PR](https://github.com/apache/iceberg/pull/3056) it reads like the current solution was born out of scalability concerns, and some inconsistencies were noted between implementations which were discussed in an [issue](https://github.com/apache/iceberg/issues/4159) without too much of a conclusion.
Are we OK with going forward by adding another property or would some consolidation be preferred?
--
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] deletion & purge improvements for undelete feature in REST catalog [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11023:
URL: https://github.com/apache/iceberg/issues/11023#issuecomment-2764827054
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] deletion & purge improvements for undelete feature in REST catalog [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11023:
URL: https://github.com/apache/iceberg/issues/11023#issuecomment-2727740637
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