Skip to content

Commit c00ee8f

Browse files
authored
fix: no member named 'SourceFieldIndex' (#131)
1 parent bfb19f6 commit c00ee8f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/iceberg/avro/avro_data_util.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ Status AppendStructToBuilder(const ::avro::NodePtr& avro_node,
7070
auto* field_builder = struct_builder->field_builder(static_cast<int>(i));
7171

7272
if (field_projection.kind == FieldProjection::Kind::kProjected) {
73-
size_t avro_field_index =
74-
std::get<FieldProjection::SourceFieldIndex>(field_projection.from);
73+
size_t avro_field_index = std::get<size_t>(field_projection.from);
7574
if (avro_field_index >= avro_record.fieldCount()) {
7675
return InvalidArgument("Avro field index {} out of bound {}", avro_field_index,
7776
avro_record.fieldCount());

src/iceberg/avro/avro_schema_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ Result<FieldProjection> ProjectList(const ListType& list_type,
672672

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

677677
FieldProjection result;
678678
result.children.emplace_back(std::move(element_projection));

0 commit comments

Comments
 (0)