Details
-
Improvement
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
None
Description
WithKeys.<Void, String>of((Void) null)) should choose a VoidCoder as the key coder instead of erroring out.
java.lang.IllegalStateException: Unable to return a default Coder for <transform> [PCollection]. Correct one of the following root causes: No Coder has been manually specified; you may do so using .setCoder(). Inferring a Coder from the CoderRegistry failed: Cannot provide coder for parameterized type org.apache.beam.sdk.values.KV<K, V>: Unable to provide a Coder for K.
WithKeysTest#testConstantKeys but using a Void key type should pass coder inference.
Attachments
Issue Links
- links to