MCPcopy Create free account
hub / github.com/apache/arrow / garrow_field_new

Function garrow_field_new

c_glib/arrow-glib/field.cpp:163–169  ·  view source on GitHub ↗

* garrow_field_new: * @name: The name of the field. * @data_type: (transfer full): The data type of the field. * * Returns: A newly created #GArrowField. */

Source from the content-addressed store, hash-verified

161 * Returns: A newly created #GArrowField.
162 */
163GArrowField *
164garrow_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:

Callers 2

mainFunction · 0.85
build_schemaFunction · 0.85

Calls 1

garrow_data_type_get_rawFunction · 0.85

Tested by

no test coverage detected