You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line treats "null" and null as equivalent for default values, however that is not the case. Having a default value that is actually the string "null" will fail when creating a new Codec.
To reproduce simply try goavro.NewCodec(sample) where sample is :
The above would pass if the union was defined with null type as its first element but that's a different case. This would fail as well if it was a simple string type.
The text was updated successfully, but these errors were encountered:
goavro/record.go
Line 112 in 8eb9f0e
This line treats
"null"
andnull
as equivalent for default values, however that is not the case. Having a default value that is actually the string"null"
will fail when creating a newCodec
.To reproduce simply try
goavro.NewCodec(sample)
wheresample
is :{ "name": "test_str", "type": [ "string", "null" ], "default": "null" }
The above would pass if the union was defined with null type as its first element but that's a different case. This would fail as well if it was a simple string type.
The text was updated successfully, but these errors were encountered: