Skip to content

Commit 00cb9fc

Browse files
manuzhangcodex
andcommitted
Format DeleteFiles JSON serde changes
Co-authored-by: Codex <codex@openai.com>
1 parent fd64fa4 commit 00cb9fc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/iceberg/json_serde.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,8 @@ Result<std::unique_ptr<TableUpdate>> TableUpdateFromJson(const nlohmann::json& j
16811681
return std::make_unique<table::RemovePartitionStatistics>(snapshot_id);
16821682
}
16831683
if (action == kActionDeleteFiles) {
1684-
ICEBERG_ASSIGN_OR_RAISE(auto files, GetJsonValue<std::vector<std::string>>(json, kFiles));
1684+
ICEBERG_ASSIGN_OR_RAISE(auto files,
1685+
GetJsonValue<std::vector<std::string>>(json, kFiles));
16851686
return std::make_unique<table::DeleteFiles>(std::move(files));
16861687
}
16871688

src/iceberg/test/json_serde_test.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,8 @@ TEST(JsonInternalTest, TableUpdateRemovePartitionStatistics) {
650650
}
651651

652652
TEST(JsonInternalTest, TableUpdateDeleteFiles) {
653-
table::DeleteFiles update(
654-
{"s3://bucket/warehouse/table/metadata/old-1.json",
655-
"s3://bucket/warehouse/table/metadata/old-2.json"});
653+
table::DeleteFiles update({"s3://bucket/warehouse/table/metadata/old-1.json",
654+
"s3://bucket/warehouse/table/metadata/old-2.json"});
656655
nlohmann::json expected = R"({
657656
"action":"delete-files",
658657
"files":[

0 commit comments

Comments
 (0)