You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2025/03/25 01:15:48 UTC
[I] [bug] partial `OVERWRITE` operation writes the wrong snapshot summary metrics [iceberg-python]
kevinjqliu opened a new issue, #1845:
URL: https://github.com/apache/iceberg-python/issues/1845
### Apache Iceberg version
main (development)
### Please describe the bug 🐞
Snapshot `OVERWRITE` operation can calculate the wrong summary fields when the table is partially updated.
`update_snapshot_summaries` assumes that all `OVERWRITE` operations are full table overwrite
https://github.com/apache/iceberg-python/blob/322ebdd1a6e4870e7f0bdbdf74ca2a04b0ce5d7f/pyiceberg/table/update/snapshot.py#L239
https://github.com/apache/iceberg-python/blob/322ebdd1a6e4870e7f0bdbdf74ca2a04b0ce5d7f/pyiceberg/table/snapshots.py#L358-L359
This is likely an oversight when we implemented partial write.
Thankfully the table/transaction's `overwrite` function is currently implemented as a delete+append.
The only place where `OVERWRITE` operation is used is during partial deletes. https://github.com/apache/iceberg-python/blob/322ebdd1a6e4870e7f0bdbdf74ca2a04b0ce5d7f/pyiceberg/table/__init__.py#L678
Original thread https://github.com/apache/iceberg-go/pull/356#issuecomment-2746317666 (thanks @arnaudbriche and @zeroshade )
Partial overwrite reproduced in #1840
### Willingness to contribute
- [x] 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
- [ ] 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-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] [bug] partial `OVERWRITE` operation writes the wrong snapshot summary metrics [iceberg-python]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #1845: [bug] partial `OVERWRITE` operation writes the wrong snapshot summary metrics
URL: https://github.com/apache/iceberg-python/issues/1845
--
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] [bug] partial `OVERWRITE` operation writes the wrong snapshot summary metrics [iceberg-python]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1845:
URL: https://github.com/apache/iceberg-python/issues/1845#issuecomment-3583624260
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] [bug] partial `OVERWRITE` operation writes the wrong snapshot summary metrics [iceberg-python]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1845:
URL: https://github.com/apache/iceberg-python/issues/1845#issuecomment-3524482581
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