Skip to main content

avro_to_arrow_schema

Function avro_to_arrow_schema 

Source
pub fn avro_to_arrow_schema(
    avro_schema_str: &str,
) -> Result<SchemaRef, ConnectorError>
Expand description

Converts an Avro JSON schema string to an Arrow [SchemaRef] via arrow-avro’s Decoder.

§Errors

Returns ConnectorError::SchemaMismatch if the JSON is invalid or conversion fails.