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

Function garrow_csv_read_options_add_schema

c_glib/arrow-glib/reader.cpp:1351–1359  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

1349 * Since: 0.12.0
1350 */
1351void
1352garrow_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:

Callers

nothing calls this directly

Calls 4

garrow_schema_get_rawFunction · 0.85
fieldsMethod · 0.45
nameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected