You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by GitBox <gi...@apache.org> on 2022/12/16 08:06:45 UTC

[GitHub] [avro] martin-g commented on pull request #2014: AVRO-3683: [Rust] Read/Write with multiple schemas

martin-g commented on PR #2014:
URL: https://github.com/apache/avro/pull/2014#issuecomment-1354357859

   The only way I see to support this is to have a `main` schema, e.g.:
   ```rust
    let actual = to_avro_datum_schemata(&main_schema, &schemata.as_slice(), record_value).unwrap();
   ```
   
   where `main_schema` is the schema that should be used for read/write and is a member of `schemata`.
   I.e. `#parse_list()` returns a `Vec<Schema>`, the user picks the main one from them and passes **all** as a second argument for schema resolution.


-- 
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: issues-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org