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:1349–1357  ·  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

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

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