martin-g commented on a change in pull request #1396:
URL: https://github.com/apache/avro/pull/1396#discussion_r781171826
##########
File path: lang/rust/src/types.rs
##########
@@ -66,7 +66,12 @@ pub enum Value {
/// reading values.
Enum(i32, String),
/// An `union` Avro value.
- Union(Box<Value>),
+ ///
+ /// A Union is represented by the value it holds and its position in the
type list
+ /// of its corresponding schema
+ /// This allows schema-less encoding, as well as schema resolution while
+ /// reading values.
+ Union(i32, Box<Value>),
Review comment:
Why `i32` ? Could we have negative values ?
--
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]