You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That logic fails here, because the schema contains a Schema::Date variant but the incoming value is a Value::Int. Note that Value::validate handles this case correctly.
The text was updated successfully, but these errors were encountered:
ttencate
added a commit
to ttencate/avro-rs
that referenced
this issue
Dec 9, 2020
Using avro-rs 0.11.0 because 0.12.0 won't compile for me.
I think this happens because
UnionSchema::find_schema
only looks for a variant that matches the input type exactly:avro-rs/src/schema.rs
Lines 343 to 349 in de6153e
That logic fails here, because the schema contains a
Schema::Date
variant but the incoming value is aValue::Int
. Note thatValue::validate
handles this case correctly.The text was updated successfully, but these errors were encountered: