File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020#include " iceberg/update/set_snapshot.h"
2121
22- #include < memory>
23-
2422#include < gmock/gmock.h>
2523#include < gtest/gtest.h>
2624
3230
3331namespace iceberg {
3432
35- // Test fixture for SetSnapshot tests
3633class SetSnapshotTest : public UpdateTestBase {
3734 protected:
3835 // Snapshot IDs from TableMetadataV2Valid.json
Original file line number Diff line number Diff line change 2626#include " iceberg/iceberg_export.h"
2727#include " iceberg/result.h"
2828#include " iceberg/type_fwd.h"
29- #include " iceberg/update/set_snapshot.h"
3029
3130namespace iceberg {
3231
@@ -86,7 +85,7 @@ class ICEBERG_EXPORT Transaction : public std::enable_shared_from_this<Transacti
8685 // / \brief Create a new UpdateLocation to update the table location and commit the
8786 // / changes.
8887 Result<std::shared_ptr<UpdateLocation>> NewUpdateLocation ();
89-
88+
9089 // / \brief Create a new SetSnapshot to set the current snapshot or rollback to a
9190 // / previous snapshot and commit the changes.
9291 Result<std::shared_ptr<SetSnapshot>> NewSetSnapshot ();
Original file line number Diff line number Diff line change @@ -104,8 +104,6 @@ Result<std::vector<std::shared_ptr<Snapshot>>> SnapshotUtil::CurrentAncestors(
104104Result<std::vector<std::shared_ptr<Snapshot>>> SnapshotUtil::CurrentAncestors (
105105 const TableMetadata& metadata) {
106106 ICEBERG_ASSIGN_OR_RAISE (auto current, metadata.Snapshot ());
107-
108- // Create a lookup function that uses the metadata
109107 auto lookup = [&metadata](int64_t id) -> Result<std::shared_ptr<Snapshot>> {
110108 return metadata.SnapshotById (id);
111109 };
You can’t perform that action at this time.
0 commit comments