Details
Description
The schema resolution page says:
> if both are enums:
> if the writer's symbol is not present in the reader's enum, then an
error is signalled.
This makes it difficult to use enum's because you can never add a enum value and keep old reader's compatible. Why not use the default option to refer to one of enum values so that when a old reader encounters a enum ordinal it does not recognize, it can default to the optional schema provided one. If the old schema does not provide a default then the older reader can continue to fail as it does today.
Attachments
Issue Links
- causes
-
AVRO-2767 Can't easily use Java annotations to set enum default
- Open
- is related to
-
AVRO-1347 Improve name and alias matching for named schemas
- Open
- relates to
-
AVRO-3760 Using enum with default symbol, cannot parse future value
- Open
-
AVRO-2626 [enums] avro-js does not seem to support 1.9.0 spec although 1.9.0 version was published
- Open
-
AVRO-1752 Aliases for enum symbols.
- Open
-
AVRO-2895 Use default to allow old readers to specify default union value when encountering new union branches
- Open
- Testing discovered
-
AVRO-3313 enum default value to allow deserializer to deserialize to when encountering new enum symbols doesn't work
- Resolved
- links to