60 using From = std::variant<std::monostate, size_t, Literal>;
81 std::vector<FieldProjection> fields;
95 const Schema& source_schema,
A schema for a Table.
Definition schema.h:51
Define symbol visibility macros for core Iceberg APIs.
Define typed literal values used by expressions.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:33
ICEBERG_EXPORT Result< SchemaProjection > Project(const Schema &expected_schema, const Schema &source_schema, bool prune_source)
Project the expected schema on top of the source schema.
ICEBERG_EXPORT std::string_view ToString(Expression::Operation op)
Returns a string representation of an expression operation.
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.
A field schema partner to carry projection information.
Definition schema_util.h:38
std::variant< std::monostate, size_t, Literal > From
A variant to indicate how to set the value of the field.
Definition schema_util.h:60
std::vector< FieldProjection > children
The children of the field if it is a nested field.
Definition schema_util.h:74
Kind kind
The kind of projection of the field it partners with.
Definition schema_util.h:70
From from
The source to set the value of the field.
Definition schema_util.h:72
Kind
How the field is projected.
Definition schema_util.h:40
std::shared_ptr< ExtraAttributes > attributes
Format-specific attributes for the field.
Definition schema_util.h:76
A schema partner to carry projection information.
Definition schema_util.h:80