|
35 | 35 | #include "iceberg/update/expire_snapshots.h" |
36 | 36 | #include "iceberg/update/fast_append.h" |
37 | 37 | #include "iceberg/update/merge_append.h" |
| 38 | +#include "iceberg/update/overwrite_files.h" |
38 | 39 | #include "iceberg/update/row_delta.h" |
39 | 40 | #include "iceberg/update/set_snapshot.h" |
40 | 41 | #include "iceberg/update/snapshot_manager.h" |
@@ -238,6 +239,12 @@ Result<std::shared_ptr<RowDelta>> Table::NewRowDelta() { |
238 | 239 | return RowDelta::Make(name().name, std::move(ctx)); |
239 | 240 | } |
240 | 241 |
|
| 242 | +Result<std::shared_ptr<OverwriteFiles>> Table::NewOverwrite() { |
| 243 | + ICEBERG_ASSIGN_OR_RAISE( |
| 244 | + auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
| 245 | + return OverwriteFiles::Make(name().name, std::move(ctx)); |
| 246 | +} |
| 247 | + |
241 | 248 | Result<std::shared_ptr<UpdateStatistics>> Table::NewUpdateStatistics() { |
242 | 249 | ICEBERG_ASSIGN_OR_RAISE( |
243 | 250 | auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
@@ -349,6 +356,10 @@ Result<std::shared_ptr<RowDelta>> StaticTable::NewRowDelta() { |
349 | 356 | return NotSupported("Cannot create a row delta for a static table"); |
350 | 357 | } |
351 | 358 |
|
| 359 | +Result<std::shared_ptr<OverwriteFiles>> StaticTable::NewOverwrite() { |
| 360 | + return NotSupported("Cannot create an overwrite for a static table"); |
| 361 | +} |
| 362 | + |
352 | 363 | Result<std::shared_ptr<SnapshotManager>> StaticTable::NewSnapshotManager() { |
353 | 364 | return NotSupported("Cannot create a snapshot manager for a static table"); |
354 | 365 | } |
|
0 commit comments