|
36 | 36 | #include "iceberg/update/fast_append.h" |
37 | 37 | #include "iceberg/update/merge_append.h" |
38 | 38 | #include "iceberg/update/overwrite_files.h" |
| 39 | +#include "iceberg/update/rewrite_manifests.h" |
39 | 40 | #include "iceberg/update/row_delta.h" |
40 | 41 | #include "iceberg/update/set_snapshot.h" |
41 | 42 | #include "iceberg/update/snapshot_manager.h" |
@@ -245,6 +246,12 @@ Result<std::shared_ptr<OverwriteFiles>> Table::NewOverwrite() { |
245 | 246 | return OverwriteFiles::Make(name().name, std::move(ctx)); |
246 | 247 | } |
247 | 248 |
|
| 249 | +Result<std::shared_ptr<RewriteManifests>> Table::NewRewriteManifests() { |
| 250 | + ICEBERG_ASSIGN_OR_RAISE( |
| 251 | + auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
| 252 | + return RewriteManifests::Make(name().name, std::move(ctx)); |
| 253 | +} |
| 254 | + |
248 | 255 | Result<std::shared_ptr<UpdateStatistics>> Table::NewUpdateStatistics() { |
249 | 256 | ICEBERG_ASSIGN_OR_RAISE( |
250 | 257 | auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
@@ -360,6 +367,10 @@ Result<std::shared_ptr<OverwriteFiles>> StaticTable::NewOverwrite() { |
360 | 367 | return NotSupported("Cannot create an overwrite for a static table"); |
361 | 368 | } |
362 | 369 |
|
| 370 | +Result<std::shared_ptr<RewriteManifests>> StaticTable::NewRewriteManifests() { |
| 371 | + return NotSupported("Cannot create a rewrite manifests for a static table"); |
| 372 | +} |
| 373 | + |
363 | 374 | Result<std::shared_ptr<SnapshotManager>> StaticTable::NewSnapshotManager() { |
364 | 375 | return NotSupported("Cannot create a snapshot manager for a static table"); |
365 | 376 | } |
|
0 commit comments