Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Nov 7, 2024
1 parent b79d1a3 commit 7ffa105
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions schema/avro/union.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ func (r unionResolver) afterUnmarshalNullUnionSubstitutions(val any, substitutio

// nullUnionField is the actual field, i.e. the last leg in the path.
// nullUnionField is nil if the field is actually a key in a map.
// In that case, all the values in the map need to be checked,
// and potentially substituted.
// In that case, all the values in the map need to be checked and substituted.
// nullUnionField is not nil if it's a field within a record schema.
// In that case, we only substitute that field.
nullUnionField := nullUnionPath[len(nullUnionPath)-1].field
Expand Down

0 comments on commit 7ffa105

Please sign in to comment.