40 std::shared_ptr<TransactionContext> ctx);
68 Kind
kind() const final {
return Kind::kUpdateSortOrder; }
77 std::vector<SortField> sort_fields_;
78 bool case_sensitive_ =
true;
Base class for all kinds of table metadata updates.
Definition pending_update.h:41
Updating table sort order with a newly created order.
Definition update_sort_order.h:37
Kind kind() const final
Return the kind of this pending update.
Definition update_sort_order.h:68
Result< std::shared_ptr< SortOrder > > Apply()
Apply the pending changes and return the new SortOrder.
UpdateSortOrder & AddSortFieldByName(std::string_view name, SortDirection direction, NullOrder null_order)
Add a sort field by field name with identity transform.
UpdateSortOrder & AddSortField(const std::shared_ptr< Term > &term, SortDirection direction, NullOrder null_order)
Add a sort field to the sort order.
UpdateSortOrder & CaseSensitive(bool case_sensitive)
Set case sensitivity of sort column name resolution.
bool IsRetryable() const override
Whether this update can be retried after a commit conflict.
Definition update_sort_order.h:69
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:33
SortDirection
Sort direction in a partition, either ascending or descending.
Definition sort_field.h:38
NullOrder
Definition sort_field.h:63
std::expected< T, E > Result
Result alias.
Definition result.h:88