jecsand838 commented on issue #9233:
URL: https://github.com/apache/arrow-rs/issues/9233#issuecomment-4093783422

   @mzabaluev 
   
   Let me know what you think of this approach whenever you get a chance. I 
planned to make sub-issues due to the size of it's scope. 
   
   Just knocking out this first part should cover #9575:
   
   ```rust
   use arrow_schema::Schema as ArrowSchema;
   use arrow_avro::schema::AvroSchema;
   
   // minimal defaults (equivalent to today's best effort inference)
   let avro: AvroSchema = ArrowToAvroSchemaBuilder::new(&arrow_schema).build()?;
   
   // use a writer schema to inform configuration
   let avro: AvroSchema = 
ArrowToAvroSchemaBuilder::from_writer_schema(&arrow_schema, 
&avro_writer_schema).build()?;
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to