27#include "iceberg/expression/literal.h"
28#include "iceberg/iceberg_export.h"
29#include "iceberg/result.h"
57 using From = std::variant<std::monostate, size_t, Literal>;
78 std::vector<FieldProjection> fields;
91ICEBERG_EXPORT Result<SchemaProjection> Project(
const Schema& expected_schema,
92 const Schema& source_schema,
A schema for a Table.
Definition schema.h:49
A field schema partner to carry projection information.
Definition schema_util.h:35
std::variant< std::monostate, size_t, Literal > From
A variant to indicate how to set the value of the field.
Definition schema_util.h:57
std::vector< FieldProjection > children
The children of the field if it is a nested field.
Definition schema_util.h:71
Kind kind
The kind of projection of the field it partners with.
Definition schema_util.h:67
From from
The source to set the value of the field.
Definition schema_util.h:69
Kind
How the field is projected.
Definition schema_util.h:37
std::shared_ptr< ExtraAttributes > attributes
Format-specific attributes for the field.
Definition schema_util.h:73
A schema partner to carry projection information.
Definition schema_util.h:77