markfarnan commented on PR #2014:
URL: https://github.com/apache/avro/pull/2014#issuecomment-1353810724

   Thanks, 
   
   It's also panicing with my test case that uses slightly more complicated 
structs (the ones in the) PR and a struct rather than manually constructed 
value.  
   
   I'll see if I can work out why/if its me, or I'll update the PR in the 
morning with test case that uses your new functions.
   
   Here is the snippet that panics inside "to_avro_datum_schemata" in case 
usefull. 
   
   ```
   let record = MultiSchemaTestTypeA {
           b: Some(MultiSchemaTestTypeB {
               d: String::from("tom"),
               e: 451,
           }),
           c: default_multischematesttypea_c(),
       };
   
       let schemata: Vec<Schema> = Schema::parse_list(&[schema_TypeA, 
schema_TypeB]).unwrap();
       let schemata: Vec<&Schema> = schemata.iter().collect();
   
       let record_value = to_value(&record).unwrap();
       let actual = to_avro_datum_schemata(&schemata.as_slice(), 
record_value).unwrap();
   ```


-- 
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