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

Function garrow_schema_import

c_glib/arrow-glib/schema.cpp:136–146  ·  view source on GitHub ↗

* garrow_schema_import: * @c_abi_schema: (not nullable): A `struct ArrowSchema *`. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full) (nullable): An imported #GArrowSchema on success, * %NULL on error. * * You don't need to release the passed `struct ArrowSchema *`, * even if this function reports an error. * * Since: 6.0.0 */

Source from the content-addressed store, hash-verified

134 * Since: 6.0.0
135 */
136GArrowSchema *
137garrow_schema_import(gpointer c_abi_schema, GError **error)
138{
139 auto arrow_schema_result =
140 arrow::ImportSchema(static_cast<ArrowSchema *>(c_abi_schema));
141 if (garrow::check(error, arrow_schema_result, "[schema][import]")) {
142 return garrow_schema_new_raw(&(*arrow_schema_result));
143 } else {
144 return NULL;
145 }
146}
147
148/**
149 * garrow_schema_new:

Callers

nothing calls this directly

Calls 2

checkFunction · 0.70
ImportSchemaFunction · 0.50

Tested by

no test coverage detected