We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b38bb commit c70f963Copy full SHA for c70f963
crates/iceberg/src/transaction/mod.rs
@@ -74,6 +74,7 @@ use crate::transaction::upgrade_format_version::UpgradeFormatVersionAction;
74
use crate::{Catalog, TableCommit, TableRequirement, TableUpdate};
75
76
/// Table transaction.
77
+#[derive(Clone)]
78
pub struct Transaction {
79
table: Table,
80
actions: Vec<BoxedTransactionAction>,
@@ -154,7 +155,7 @@ impl Transaction {
154
155
pub async fn commit(mut self, catalog: &dyn Catalog) -> Result<Table> {
156
if self.actions.is_empty() {
157
// nothing to commit
- return Ok(self.table.clone());
158
+ return Ok(self.table);
159
}
160
161
self.do_commit(catalog).await
0 commit comments