Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.10.0, 1.9.2
-
None
Description
In the Java api you must register any custom logical types before you use them with:
{{ LogicalTypes.register }}
This must be done before the schema is parsed or the parsing process will not discover the logical type, additionally for generated classes the schema is parsed when the class is loaded.
This creates a race condition where you must have your calls to register logical types happen before anything attempts to load your class.
This could be a solution to the problem:
https://github.com/apache/avro/pull/885#issuecomment-640462476
Attachments
Issue Links
- duplicates
-
AVRO-2840 Maven allow Custom Logical Types for generated code
- Resolved