24#include <unordered_map>
42 std::shared_ptr<TransactionContext> ctx);
54 std::shared_ptr<PartitionStatisticsFile> partition_statistics_file);
64 Kind
kind() const final {
return Kind::kUpdatePartitionStatistics; }
74 std::vector<std::pair<int64_t, std::shared_ptr<PartitionStatisticsFile>>> to_set;
75 std::vector<int64_t> to_remove;
83 std::unordered_map<int64_t, std::shared_ptr<PartitionStatisticsFile>>
84 partition_statistics_to_set_;
Base class for all kinds of table metadata updates.
Definition pending_update.h:41
Updates table partition statistics.
Definition update_partition_statistics.h:39
bool IsRetryable() const override
Partition statistics updates are intentionally not retried today.
Definition update_partition_statistics.h:71
UpdatePartitionStatistics & SetPartitionStatistics(std::shared_ptr< PartitionStatisticsFile > partition_statistics_file)
Set partition statistics file for a snapshot.
Kind kind() const final
Return the kind of this pending update.
Definition update_partition_statistics.h:64
UpdatePartitionStatistics & RemovePartitionStatistics(int64_t snapshot_id)
Remove partition statistics for a snapshot.
Define symbol visibility macros for core Iceberg APIs.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:33
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.
Definition update_partition_statistics.h:73