|
37 | 37 | #include "iceberg/update/merge_append.h" |
38 | 38 | #include "iceberg/update/overwrite_files.h" |
39 | 39 | #include "iceberg/update/rewrite_files.h" |
| 40 | +#include "iceberg/update/rewrite_manifests.h" |
40 | 41 | #include "iceberg/update/row_delta.h" |
41 | 42 | #include "iceberg/update/set_snapshot.h" |
42 | 43 | #include "iceberg/update/snapshot_manager.h" |
@@ -252,6 +253,12 @@ Result<std::shared_ptr<RewriteFiles>> Table::NewRewriteFiles() { |
252 | 253 | return RewriteFiles::Make(name().name, std::move(ctx)); |
253 | 254 | } |
254 | 255 |
|
| 256 | +Result<std::shared_ptr<RewriteManifests>> Table::NewRewriteManifests() { |
| 257 | + ICEBERG_ASSIGN_OR_RAISE( |
| 258 | + auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
| 259 | + return RewriteManifests::Make(name().name, std::move(ctx)); |
| 260 | +} |
| 261 | + |
255 | 262 | Result<std::shared_ptr<UpdateStatistics>> Table::NewUpdateStatistics() { |
256 | 263 | ICEBERG_ASSIGN_OR_RAISE( |
257 | 264 | auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
@@ -371,6 +378,10 @@ Result<std::shared_ptr<RewriteFiles>> StaticTable::NewRewriteFiles() { |
371 | 378 | return NotSupported("Cannot create a rewrite files for a static table"); |
372 | 379 | } |
373 | 380 |
|
| 381 | +Result<std::shared_ptr<RewriteManifests>> StaticTable::NewRewriteManifests() { |
| 382 | + return NotSupported("Cannot create a rewrite manifests for a static table"); |
| 383 | +} |
| 384 | + |
374 | 385 | Result<std::shared_ptr<SnapshotManager>> StaticTable::NewSnapshotManager() { |
375 | 386 | return NotSupported("Cannot create a snapshot manager for a static table"); |
376 | 387 | } |
|
0 commit comments