We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb2bb45 commit 5bf6ab3Copy full SHA for 5bf6ab3
1 file changed
src/iceberg/transaction.cc
@@ -200,6 +200,16 @@ Status Transaction::Apply(PendingUpdate& update) {
200
metadata_builder_->AssignUUID();
201
}
202
} break;
203
+ case PendingUpdate::Kind::kUpdateStatistics: {
204
+ auto& update_statistics = internal::checked_cast<UpdateStatistics&>(update);
205
+ ICEBERG_ASSIGN_OR_RAISE(auto result, update_statistics.Apply());
206
+ for (auto&& [_, stat_file] : result.to_set) {
207
+ metadata_builder_->SetStatistics(std::move(stat_file));
208
+ }
209
+ for (const auto& snapshot_id : result.to_remove) {
210
+ metadata_builder_->RemoveStatistics(snapshot_id);
211
212
+ } break;
213
default:
214
return NotSupported("Unsupported pending update: {}",
215
static_cast<int32_t>(update.kind()));
0 commit comments