plusplusjiajia commented on code in PR #3784:
URL: https://github.com/apache/iceberg-rust/pull/3784#discussion_r4752517142
##########
crates/catalog/rest/src/catalog.rs:
##########
@@ -1695,13 +1695,10 @@ impl SessionCatalog for RestSessionCatalog {
}
};
- let file_io = self
- .load_file_io(Some(&response.metadata_location), None, None)
Review Comment:
@blackmwk Yes, that's the real problem. `update_table` now runs `load_table`
again after the commit, which keeps the catalog stateless at the cost of one
extra GET per commit. If the reload fails, it falls back to the catalog
properties, since the commit has already succeeded.
##########
crates/iceberg/src/catalog/mod.rs:
##########
@@ -380,6 +380,19 @@ pub struct TableCommit {
requirements: Vec<TableRequirement>,
/// The updates of the table.
updates: Vec<TableUpdate>,
+ /// The FileIO of the table as loaded for this commit.
+ file_io: FileIO,
Review Comment:
@blackmwk Removed, thanks.
--
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]