Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/iceberg/avro/avro_data_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ Status AppendStructToBuilder(const ::avro::NodePtr& avro_node,
auto* field_builder = struct_builder->field_builder(static_cast<int>(i));

if (field_projection.kind == FieldProjection::Kind::kProjected) {
size_t avro_field_index =
std::get<FieldProjection::SourceFieldIndex>(field_projection.from);
size_t avro_field_index = std::get<size_t>(field_projection.from);
if (avro_field_index >= avro_record.fieldCount()) {
return InvalidArgument("Avro field index {} out of bound {}", avro_field_index,
avro_record.fieldCount());
Expand Down
2 changes: 1 addition & 1 deletion src/iceberg/avro/avro_schema_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ Result<FieldProjection> ProjectList(const ListType& list_type,

// Set the element projection metadata but preserve its children
element_projection.kind = FieldProjection::Kind::kProjected;
element_projection.from = FieldProjection::SourceFieldIndex{0};
element_projection.from = size_t{0};

FieldProjection result;
result.children.emplace_back(std::move(element_projection));
Expand Down
Loading