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
record_collection has two versions, with the only difference being the first version references some_record version 1, and the second version 2. I'm not going to write them both out but you get the idea.
AFAICT the library doesn't follow the version number of the record. It ends up in the function parsePrimitiveType where it finds the referenced schema in the cache regardless of version (or id). Note the referenced schema is also used in my application so it was already present.
Changing around the order in which I initiate topics I'm realizing this library doesn't actually reach out SR to resolve referenced schema types, it just depends on it already being present.
Still, it would be nice for the internal cache to be keyed off id, or name+version
The Schema Parser has no concept of the registry or its references. It would need to setup a specific schema cache, parse all of the references first, then parse the record. Needless to say, this is not happening in the registry at this point. The issue here though is in the registry, not the schema parser. This however should not be wildly difficult to implement.
Hello Again,
Due to the change since v2.18 where the library no longer supports reading schemas where the null is not present in the data on a union schema with a default of Null, I now need to read in both the original schema, and the current schema from Schema Registry in order to compile a composite schema.
However I have some declared record types that specify a version. For example:
some record version 1
some record version 2
Then I have another record that references some record
record_collection has two versions, with the only difference being the first version references some_record version 1, and the second version 2. I'm not going to write them both out but you get the idea.
AFAICT the library doesn't follow the version number of the record. It ends up in the function
parsePrimitiveType
where it finds the referenced schema in the cache regardless of version (or id). Note the referenced schema is also used in my application so it was already present.Obviously a suboptimal work around is to rebuild my schemas without using references types.
Is there something I'm missing, some configuration I need to set? If not can this be a feature request?
Thank You Again
The text was updated successfully, but these errors were encountered: