Skip to content
Closed
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
4 changes: 2 additions & 2 deletions c_glib/arrow-glib/composite-data-type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ garrow_struct_data_type_get_field_by_name(GArrowStructDataType *data_type,
auto arrow_struct_data_type =
std::static_pointer_cast<arrow::StructType>(arrow_data_type);

auto arrow_field = arrow_struct_data_type->GetChildByName(name);
auto arrow_field = arrow_struct_data_type->GetFieldByName(name);
if (arrow_field) {
return garrow_field_new_raw(&arrow_field);
} else {
Expand All @@ -256,7 +256,7 @@ garrow_struct_data_type_get_field_index(GArrowStructDataType *data_type,
auto arrow_struct_data_type =
std::static_pointer_cast<arrow::StructType>(arrow_data_type);

return arrow_struct_data_type->GetChildIndex(name);
return arrow_struct_data_type->GetFieldIndex(name);
}


Expand Down