enkidulan commented on issue #573:
URL: https://github.com/apache/iceberg-python/issues/573#issuecomment-2033571970
For the reference, I was able to make a tag only by using some private
properties of the transaction object:
```py
from pyiceberg.table import SetSnapshotRefUpdate, update_table_metadata
with table.transaction() as txn:
update = SetSnapshotRefUpdate(
ref_name=tag,
type="tag",
snapshot_id=snapshot_id,
max_ref_age_ms=None,
max_snapshot_age_ms=None,
min_snapshots_to_keep=None,
)
txn._updates = [update]
txn.table_metadata = update_table_metadata(txn.table_metadata, [update])
```
This seems to work fine as a temporary workaround for development purposes,
but it would great to have a public method for creating tags.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]