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
When attempting to generate an array of type long using 'options' the generations fails with the following error:
java.lang.RuntimeException: Invalid option for array schema: type org.apache.avro.generic.GenericData$Array, value '[1, 2, 3]'
at io.confluent.avro.random.generator.Generator.parseOptions(Generator.java:505)
at io.confluent.avro.random.generator.Generator.generateOption(Generator.java:612)
at io.confluent.avro.random.generator.Generator.generateObject(Generator.java:373)
at io.confluent.avro.random.generator.Generator.generateRecord(Generator.java:1345)
at io.confluent.avro.random.generator.Generator.generateObject(Generator.java:402)
at io.confluent.avro.random.generator.Generator.generate(Generator.java:367)
I think this is because wrapOption should be recursive for complex types but isn't right now. So, in this case, the values of the options array get parsed as a Java Collection<Integer>, which doesn't match the expected type for the schema (should be a Collection<Long>).
When attempting to generate an array of type long using 'options' the generations fails with the following error:
Example schema:
The text was updated successfully, but these errors were encountered: