* garrow_csv_read_options_add_schema: * @options: A #GArrowCSVReadOptions. * @schema: The #GArrowSchema that specifies columns and their types. * * Add value types for columns in the schema. * * Since: 0.12.0 */
| 1347 | * Since: 0.12.0 |
| 1348 | */ |
| 1349 | void |
| 1350 | garrow_csv_read_options_add_schema(GArrowCSVReadOptions *options, GArrowSchema *schema) |
| 1351 | { |
| 1352 | auto priv = GARROW_CSV_READ_OPTIONS_GET_PRIVATE(options); |
| 1353 | auto arrow_schema = garrow_schema_get_raw(schema); |
| 1354 | for (const auto &field : arrow_schema->fields()) { |
| 1355 | priv->convert_options.column_types[field->name()] = field->type(); |
| 1356 | } |
| 1357 | } |
| 1358 | |
| 1359 | /** |
| 1360 | * garrow_csv_read_options_get_column_types: |
nothing calls this directly
no test coverage detected