Google Cloud Dataflow ships with a set of standard coders, which is great. However, none of them support nulls
(inherently since java.io.DataOutput
does not support nulls
).
Google Cloud Dataflow附带了一组标准编码器,非常棒。但是,它们都不支持空值(因为java.io.DataOutput不支持空值)。
Just wondering, should one decorate each of the available coders, or maybe this had already been done somewhere?
只是想知道,是否应该装饰每个可用的编码器,或者这可能已经在某处完成了?
Thanks,
谢谢,
1 个解决方案
#1
1
Correct. The default coders for primitive types don't support null. AvroCoder can support nulls if using @Nullable or Unions.
正确。原始类型的默认编码器不支持null。如果使用@Nullable或Unions,AvroCoder可以支持空值。
We can look into adding a coder that supports null. I've filed a feature request. Thanks!
我们可以考虑添加一个支持null的编码器。我已经提交了功能请求。谢谢!
#1
1
Correct. The default coders for primitive types don't support null. AvroCoder can support nulls if using @Nullable or Unions.
正确。原始类型的默认编码器不支持null。如果使用@Nullable或Unions,AvroCoder可以支持空值。
We can look into adding a coder that supports null. I've filed a feature request. Thanks!
我们可以考虑添加一个支持null的编码器。我已经提交了功能请求。谢谢!