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

Function garrow_chunked_array_new_empty

c_glib/arrow-glib/chunked-array.cpp:187–198  ·  view source on GitHub ↗

* garrow_chunked_array_new_empty: * @data_type: The #GArrowDataType of this chunked array. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable): * A newly created empty #GArrowChunkedArray or %NULL on error. * * Since: 11.0.0 */

Source from the content-addressed store, hash-verified

185 * Since: 11.0.0
186 */
187GArrowChunkedArray *
188garrow_chunked_array_new_empty(GArrowDataType *data_type, GError **error)
189{
190 auto arrow_data_type = garrow_data_type_get_raw(data_type);
191 auto arrow_chunked_array_result = arrow::ChunkedArray::MakeEmpty(arrow_data_type);
192 if (garrow::check(error, arrow_chunked_array_result, "[chunked-array][new]")) {
193 auto arrow_chunked_array = *arrow_chunked_array_result;
194 return garrow_chunked_array_new_raw(&arrow_chunked_array);
195 } else {
196 return nullptr;
197 }
198}
199
200/**
201 * garrow_chunked_array_equal:

Callers

nothing calls this directly

Calls 3

garrow_data_type_get_rawFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected