* garrow_field_new: * @name: The name of the field. * @data_type: (transfer full): The data type of the field. * * Returns: A newly created #GArrowField. */
| 161 | * Returns: A newly created #GArrowField. |
| 162 | */ |
| 163 | GArrowField * |
| 164 | garrow_field_new(const gchar *name, GArrowDataType *data_type) |
| 165 | { |
| 166 | auto arrow_data_type = garrow_data_type_get_raw(data_type); |
| 167 | auto arrow_field = std::make_shared<arrow::Field>(name, arrow_data_type); |
| 168 | return garrow_field_new_raw(&arrow_field, data_type); |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * garrow_field_new_full: |
no test coverage detected