CTTY commented on code in PR #3265:
URL: https://github.com/apache/iceberg-rust/pull/3265#discussion_r4252548117
##########
crates/iceberg/src/transaction/append.rs:
##########
@@ -87,7 +88,13 @@ impl FastAppendAction {
#[async_trait]
impl TransactionAction for FastAppendAction {
- async fn commit(self: Arc<Self>, table: &Table) -> Result<ActionCommit> {
+ // TODO: replace with a persistent `SimpleSnapshotProducer` once snapshot
+ // production is migrated (stateful transaction RFC, milestone 2).
+ type State = ();
+
+ fn new_state(&self) -> Self::State {}
+
+ async fn commit(&self, _state: &mut (), table: &Table) ->
Result<ActionCommit> {
let snapshot_producer = SnapshotProducer::new(
table,
self.commit_uuid.unwrap_or_else(Uuid::now_v7),
Review Comment:
Yes, thanks for pointing this out, I was planning to address this later.
I've noted this in #3418
--
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]