MCPcopy Create free account
hub / github.com/apache/arrow-rs / with_reader_schema

Method with_reader_schema

arrow-avro/src/reader/async_reader/builder.rs:75–80  ·  view source on GitHub ↗

Specify a reader schema to use when reading the Avro file. This can be useful to project specific columns or handle schema evolution. If this is not provided, the schema will be derived from the Arrow schema provided.

(self, reader_schema: AvroSchema)

Source from the content-addressed store, hash-verified

73 /// This can be useful to project specific columns or handle schema evolution.
74 /// If this is not provided, the schema will be derived from the Arrow schema provided.
75 pub fn with_reader_schema(self, reader_schema: AvroSchema) -> Self {
76 Self {
77 reader_schema: Some(reader_schema),
78 ..self
79 }
80 }
81
82 /// Specify a projection of column indices to read from the Avro file.
83 /// This can help optimize reading by only fetching the necessary columns.

Calls

no outgoing calls