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/08/26 09:15:28 UTC

[GitHub] [avro] shaeqahmed commented on a diff in pull request #1837: AVRO: [Rust] Improved resolution of nullable record fields.

shaeqahmed commented on code in PR #1837:
URL: https://github.com/apache/avro/pull/1837#discussion_r955842066


##########
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:
   Since this cycles through all the variants to find a match, I was seeing a ton of error logs for every record even when there is no issue. Let me know is this makes sense, and I can reintroduce this change in a separate 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: issues-unsubscribe@avro.apache.org

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