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
In Avro, union types can have any number of types. The first type has a distinct meaning, as that one provides the default value of the field (e.g. this is why optional fields are represented as ["null", "something"]).
Fingerprinting generates different results when the union order is different, while in reality, it should only care about the first item, and then the rest of the types can be in any order.
E.g.
"null", "string", "int" and "int", "null", "string" are different
"null", "string", "int" and "null", "int", "string" are practically the same
IMPORTANT NOTE: fingerprints are stored in the database, so backward compatibility must be addressed if changing this logic.
The text was updated successfully, but these errors were encountered:
In Avro, union types can have any number of types. The first type has a distinct meaning, as that one provides the default value of the field (e.g. this is why optional fields are represented as ["null", "something"]).
Fingerprinting generates different results when the union order is different, while in reality, it should only care about the first item, and then the rest of the types can be in any order.
E.g.
"null", "string", "int" and "int", "null", "string" are different
"null", "string", "int" and "null", "int", "string" are practically the same
IMPORTANT NOTE: fingerprints are stored in the database, so backward compatibility must be addressed if changing this logic.
The text was updated successfully, but these errors were encountered: