martin-g commented on code in PR #1837:
URL: https://github.com/apache/avro/pull/1837#discussion_r955703381


##########
lang/rust/avro/src/schema.rs:
##########
@@ -684,10 +692,11 @@ impl UnionSchema {
             Some((i, &self.schemas[i]))
         } else {
             // slow path (required for matching logical or named types)
-            self.schemas
-                .iter()
-                .enumerate()
-                .find(|(_, schema)| value.validate(schema))
+            self.schemas.iter().enumerate().find(|(_, schema)| {

Review Comment:
   Why did you change this ?
   This runs the same logic but now there won't be an error log if the 
validation is not successful.



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