49 std::string table_name, std::shared_ptr<TransactionContext> ctx);
63 const std::shared_ptr<Snapshot>& snapshot)
override;
67 std::shared_ptr<TransactionContext> ctx);
80 std::shared_ptr<Snapshot> cherrypick_snapshot_;
81 bool require_fast_forward_ =
false;
82 std::optional<PartitionSet> replaced_partitions_;
Cherry-picks or fast-forwards the current state to a snapshot.
Definition cherry_pick_operation.h:41
Result< ApplyResult > Apply() override
Build snapshot state for the transaction's current metadata.
CherryPickOperation & Cherrypick(int64_t snapshot_id)
Cherry-pick the changes of the given snapshot, or fast-forward to it.
std::string operation() override
A string that describes the action that produced the new snapshot.
Status Validate(const TableMetadata &base, const std::shared_ptr< Snapshot > &snapshot) override
Validate the current metadata.
static Result< std::unique_ptr< CherryPickOperation > > Make(std::string table_name, std::shared_ptr< TransactionContext > ctx)
Create a new CherryPickOperation instance.
Abstract base class for merge-based snapshot write operations.
Definition merging_snapshot_update.h:63
Definition expected.h:1199
Define symbol visibility macros for core Iceberg APIs.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:34
Define Result, Status, and error helpers.