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


##########
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:
   I am going to revert this change since it is not related to the nullable 
records improvement and the build and tests still pass with the old code.
   If you have a good reason to make this change we could still do it in a 
separate JIRA+PR.



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