CCDAK · Question #112
In Avro, adding an element to an enum without a default is a __ schema evolution
The correct answer is A. breaking. Since Confluent 5.4.0, Avro 1.9.1 is used. Since default value was added to enum complex type , the schema resolution changed from: (<1.9.1) if both are enums: if the writer's symbol is not present in the reader's enum, then an error is signalled. (>=1.9.1) if both are enums…
Question
In Avro, adding an element to an enum without a default is a __ schema evolution
Options
- Abreaking
- Bfull
- Cbackward
- Dforward
How the community answered
(56 responses)- A93% (52)
- B4% (2)
- C2% (1)
- D2% (1)
Explanation
Since Confluent 5.4.0, Avro 1.9.1 is used. Since default value was added to enum complex type , the schema resolution changed from: (<1.9.1) if both are enums:** if the writer's symbol is not present in the reader's enum, then an error is signalled. **(>=1.9.1) if both are enums: if the writer's symbol is not present in the reader's enum and the reader has a default value, then that value is used, otherwise an error is signalled.
Topics
Community Discussion
No community discussion yet for this question.