|
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/row_delta.h" |
38 | 39 | #include "iceberg/update/set_snapshot.h" |
39 | 40 | #include "iceberg/update/snapshot_manager.h" |
40 | 41 | #include "iceberg/update/update_location.h" |
@@ -231,6 +232,12 @@ Result<std::shared_ptr<DeleteFiles>> Table::NewDeleteFiles() { |
231 | 232 | return DeleteFiles::Make(name().name, std::move(ctx)); |
232 | 233 | } |
233 | 234 |
|
| 235 | +Result<std::shared_ptr<RowDelta>> Table::NewRowDelta() { |
| 236 | + ICEBERG_ASSIGN_OR_RAISE( |
| 237 | + auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
| 238 | + return RowDelta::Make(name().name, std::move(ctx)); |
| 239 | +} |
| 240 | + |
234 | 241 | Result<std::shared_ptr<UpdateStatistics>> Table::NewUpdateStatistics() { |
235 | 242 | ICEBERG_ASSIGN_OR_RAISE( |
236 | 243 | auto ctx, TransactionContext::Make(shared_from_this(), TransactionKind::kUpdate)); |
@@ -334,6 +341,14 @@ Result<std::shared_ptr<MergeAppend>> StaticTable::NewMergeAppend() { |
334 | 341 | return NotSupported("Cannot create a merge append for a static table"); |
335 | 342 | } |
336 | 343 |
|
| 344 | +Result<std::shared_ptr<DeleteFiles>> StaticTable::NewDeleteFiles() { |
| 345 | + return NotSupported("Cannot create delete files for a static table"); |
| 346 | +} |
| 347 | + |
| 348 | +Result<std::shared_ptr<RowDelta>> StaticTable::NewRowDelta() { |
| 349 | + return NotSupported("Cannot create a row delta for a static table"); |
| 350 | +} |
| 351 | + |
337 | 352 | Result<std::shared_ptr<SnapshotManager>> StaticTable::NewSnapshotManager() { |
338 | 353 | return NotSupported("Cannot create a snapshot manager for a static table"); |
339 | 354 | } |
|
0 commit comments