If a DataType<?> .isEnum() is true in the jooq conversion class (IBDataJooqUtils.java), then the type is treated as a string in the generated schema.
If it is is possible to get the symbol types (or somehow specify an actual enum class for a jooq EnumConverter), then IBData would probably be able to generate enumerations inside the schema and use those instead of strings for the values.
Note that nothing stops anyone from using their own enum type outside of IBData. It would be trivial to specify an enumeration that you cared about and then use MyEnum.valueOf(schemaStringValueFromAvro) to get a typed enumeration for use within transformations.
If a
DataType<?> .isEnum()
is true in the jooq conversion class (IBDataJooqUtils.java
), then the type is treated as astring
in the generated schema.If it is is possible to get the symbol types (or somehow specify an actual
enum
class for a jooq EnumConverter), then IBData would probably be able to generate enumerations inside the schema and use those instead of strings for the values.Note that nothing stops anyone from using their own
enum
type outside of IBData. It would be trivial to specify an enumeration that you cared about and then useMyEnum.valueOf(schemaStringValueFromAvro)
to get a typed enumeration for use within transformations.