* 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 */
| 185 | * Since: 11.0.0 |
| 186 | */ |
| 187 | GArrowChunkedArray * |
| 188 | garrow_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: |
nothing calls this directly
no test coverage detected