[Bug]: Coder cannot be resolved after WithKeys.of().withKeyType()
for @DefaultSchema(JavaBeanSchema.class) types
#29577
Closed
1 of 16 tasks
What happened?
When using
WithKeys.of(<lambda>).withKeyType(TypeDescriptor.of(TypeWithSchema.class)
for types annotated with@DefaultSchema(JavaBeanSchema.class)
, Beam is not able to resolve the coder for the type, despite the schema being available.See also https://stackoverflow.com/questions/77575574/unable-to-return-a-default-coder-for-withkeys-when-using-defaultschemajavabean
In particular, the docs say:
However, when using such a type with
WithKeys
, I consistently get this exception:Example POJO:
Example pipeline which generates this error:
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: