Skip to content

Commit b278e84

Browse files
committed
Format update properties files
1 parent dc8a271 commit b278e84

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/iceberg/test/update_properties_test.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ TEST(UpdatePropertiesTest, CommitUsesCatalogAndRefreshesTable) {
9191
auto updated_metadata = MakeBaseMetadata({{"foo", "new"}}); // response metadata
9292

9393
EXPECT_CALL(*catalog, UpdateTable(table.name(), _, _))
94-
.WillOnce(Return(ByMove(Result<std::unique_ptr<Table>>{
95-
std::make_unique<Table>(table.name(), updated_metadata, "loc2", nullptr,
96-
catalog)})));
94+
.WillOnce(Return(ByMove(Result<std::unique_ptr<Table>>{std::make_unique<Table>(
95+
table.name(), updated_metadata, "loc2", nullptr, catalog)})));
9796

9897
auto updater = table.UpdateProperties();
9998
updater->Set("foo", "new");

src/iceberg/update/update_properties.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ Status PropertiesUpdate::Commit() {
115115
updates.push_back(std::make_unique<table::RemoveProperties>(std::move(removed)));
116116
}
117117

118-
ICEBERG_ASSIGN_OR_RAISE(auto updated_table,
119-
table_->catalog_->UpdateTable(table_->name(), requirements,
120-
updates));
118+
ICEBERG_ASSIGN_OR_RAISE(auto updated_table, table_->catalog_->UpdateTable(
119+
table_->name(), requirements, updates));
121120

122121
table_->metadata_ = std::move(updated_table->metadata_);
123122
table_->metadata_location_ = std::move(updated_table->metadata_location_);

src/iceberg/update/update_properties.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#include <unordered_set>
2828

2929
#include "iceberg/file_format.h"
30-
#include "iceberg/pending_update.h"
3130
#include "iceberg/iceberg_export.h"
31+
#include "iceberg/pending_update.h"
3232

3333
namespace iceberg {
3434

0 commit comments

Comments
 (0)