wgtmac commented on code in PR #418:
URL: https://github.com/apache/iceberg-cpp/pull/418#discussion_r2630332644
##########
src/iceberg/update/update_properties.cc:
##########
@@ -70,65 +75,56 @@ UpdateProperties& UpdateProperties::Remove(const
std::string& key) {
return *this;
}
-Status UpdateProperties::Apply() {
- if (!catalog_) {
- return InvalidArgument("Catalog is required to apply property updates");
- }
- if (!base_metadata_) {
+Result<PendingUpdate::ApplyResult> UpdateProperties::Apply() {
+ ICEBERG_RETURN_UNEXPECTED(CheckErrors());
+
+ const auto* base_metadata = transaction_->base();
Review Comment:
Good catch!
--
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]