You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2023/08/15 07:10:08 UTC
[avro] 05/09: AVRO-3814: Revert whitespace changes
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch avro-3814/schema-resolution-union
in repository https://gitbox.apache.org/repos/asf/avro.git
commit 15476722c8f4f2918a82d24d5de02cba4b186a8c
Author: Rik Heijdens <r....@lithic.com>
AuthorDate: Fri Jul 28 11:54:00 2023 +0200
AVRO-3814: Revert whitespace changes
---
lang/rust/avro/src/schema.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lang/rust/avro/src/schema.rs b/lang/rust/avro/src/schema.rs
index f44161d7b..78a900cae 100644
--- a/lang/rust/avro/src/schema.rs
+++ b/lang/rust/avro/src/schema.rs
@@ -814,6 +814,7 @@ impl UnionSchema {
Some((i, &self.schemas[i]))
} else {
// slow path (required for matching logical or named types)
+
// first collect what schemas we already know
let mut collected_names: HashMap<Name, &Schema> = known_schemata
.map(|names| {
@@ -831,7 +832,6 @@ impl UnionSchema {
&collected_names,
)
.expect("Schema didn't successfully parse");
-
let resolved_names = resolved_schema.names_ref;
// extend known schemas with just resolved names