MCPcopy Create free account
hub / github.com/apache/datafusion / strip_metadata_from_schema

Function strip_metadata_from_schema

datafusion/datasource-avro/src/mod.rs:52–60  ·  view source on GitHub ↗
(schema: &Schema)

Source from the content-addressed store, hash-verified

50}
51
52fn strip_metadata_from_schema(schema: &Schema) -> Schema {
53 let fields = schema
54 .fields
55 .into_iter()
56 .map(|f| Arc::new(strip_metadata_from_field(f.as_ref())))
57 .collect::<Fields>();
58 // Intentionally drop schema-level metadata
59 Schema::new(fields)
60}
61
62fn strip_metadata_from_field(field: &Field) -> Field {
63 // Intentionally drop field-level metadata

Callers 1

Calls 5

newFunction · 0.85
mapMethod · 0.45
into_iterMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…