* 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 */
| 1349 | * Since: 0.12.0 |
| 1350 | */ |
| 1351 | void |
| 1352 | garrow_csv_read_options_add_schema(GArrowCSVReadOptions *options, GArrowSchema *schema) |
| 1353 | { |
| 1354 | auto priv = GARROW_CSV_READ_OPTIONS_GET_PRIVATE(options); |
| 1355 | auto arrow_schema = garrow_schema_get_raw(schema); |
| 1356 | for (const auto &field : arrow_schema->fields()) { |
| 1357 | priv->convert_options.column_types[field->name()] = field->type(); |
| 1358 | } |
| 1359 | } |
| 1360 | |
| 1361 | /** |
| 1362 | * garrow_csv_read_options_get_column_types: |
nothing calls this directly
no test coverage detected